aboutsummaryrefslogtreecommitdiff
path: root/qlop.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-03-27 23:53:50 -0400
committerMike Frysinger <vapier@gentoo.org>2016-03-27 23:53:50 -0400
commitd81fc0710ae12ce026053163370ab3dac5c1b1a5 (patch)
treeb1b911eb493bb6f8f5356a3d3d0562288a1a4efb /qlop.c
parentqlop: add --date option to filter output (diff)
downloadportage-utils-d81fc0710ae12ce026053163370ab3dac5c1b1a5.tar.gz
portage-utils-d81fc0710ae12ce026053163370ab3dac5c1b1a5.tar.bz2
portage-utils-d81fc0710ae12ce026053163370ab3dac5c1b1a5.zip
usage: add an extended text sectionv0.63
Many applets now are so complicated that a single line of text isn't sufficient to describe all of its capabilities/nuances. Allow them to pass in an arbitrary string of data to contain examples.
Diffstat (limited to 'qlop.c')
-rw-r--r--qlop.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/qlop.c b/qlop.c
index 0da636a..30e9f2f 100644
--- a/qlop.c
+++ b/qlop.c
@@ -35,7 +35,14 @@ static const char * const qlop_opts_help[] = {
"Read emerge logfile instead of $EMERGE_LOG_DIR/" QLOP_DEFAULT_LOGFILE,
COMMON_OPTS_HELP
};
-#define qlop_usage(ret) usage(ret, QLOP_FLAGS, qlop_long_opts, qlop_opts_help, lookup_applet_idx("qlop"))
+static const char qlop_desc[] =
+ "The --date option can take a few forms:\n"
+ " -d '# <day|week|month|year>[s] [ago]' (e.g. '3 days ago')\n"
+ "Or using strptime(3) formats:\n"
+ " -d '2015-12-25' (detected as %F)\n"
+ " -d '1459101740' (detected as %s)\n"
+ " -d '%d.%m.%Y|25.12.2015' (format is specified)";
+#define qlop_usage(ret) usage(ret, QLOP_FLAGS, qlop_long_opts, qlop_opts_help, qlop_desc, lookup_applet_idx("qlop"))
#define QLOP_LIST 0x01
#define QLOP_UNLIST 0x02