From 07954626c6925f22e4d59b6d68f0947d4e54b8b9 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 11 Feb 2016 18:22:05 +0100 Subject: Support format strings when dumping imported items In commit 3eae7ce (Add --list-imported command line option, 2016-01-12), we added an option to print the hashes of imported items to stdout. Extend this command line option such that it dumps the items using the specified formatting strings. With the new behavior it is, for example, easier to check items for import errors. Also, rename the option from --list-imported to --dump-imported (it is not part of any official release yet so we do not need to care about backwards compatibility). Signed-off-by: Lukas Fleischer --- doc/calcurse.1.txt | 6 ++++-- doc/manual.txt | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/calcurse.1.txt b/doc/calcurse.1.txt index 9a967a1..9fc37b6 100644 --- a/doc/calcurse.1.txt +++ b/doc/calcurse.1.txt @@ -135,8 +135,10 @@ appointments can be specified using the *-c* flag. *-l* , *--limit* :: Limit the number of results printed to 'num'. -*--list-imported*:: - When importing items, print the hash of each newly created object to stdout. +*--dump-imported*:: + When importing items, print each newly created object to stdout. Format + strings can be used to specify which details are printed. See also: + 'Formatting Options'. *-n*, *--next*:: Print the next appointment within upcoming 24 hours and exit. The indicated diff --git a/doc/manual.txt b/doc/manual.txt index b5c9825..d140dfa 100644 --- a/doc/manual.txt +++ b/doc/manual.txt @@ -328,8 +328,10 @@ can be specified using the `-c` flag. `-l , --limit `:: Limit the number of results printed to 'num'. -`--list-imported`:: - When importing items, print the hash of each newly created object to stdout. +`--dump-imported`:: + When importing items, print each newly created object to stdout. Format + strings can be used to specify which details are printed. See also: + <>. `-n, --next`:: Print the next appointment within upcoming 24 hours and exit. The indicated -- cgit v1.2.3-70-g09d2