From de23af9a8c9b9f8713e13f88a0a25cfd6614998b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 12 Oct 2014 05:35:14 +0200 Subject: m fix doc + add info manual and completion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/completion | 11 +++++++++++ src/slack.c | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 src/completion (limited to 'src') diff --git a/src/completion b/src/completion new file mode 100644 index 0000000..45637e5 --- /dev/null +++ b/src/completion @@ -0,0 +1,11 @@ +(slack + (default (arg VERB_INTERVAL_OR_COMMAND) (files -r) (suggest cmd) + (desc 'Specify which command to run')) + + (unargumented (options --fatal) + (complete --fatal) + (desc 'Fail if the timer slack cannot be set')) + + (suggestion cmd (verbatim get GET reset INTERVAL COMMAND)) +) + diff --git a/src/slack.c b/src/slack.c index 7e829fc..1895e50 100644 --- a/src/slack.c +++ b/src/slack.c @@ -31,11 +31,11 @@ static void usage(void) { - printf("USAGE: slack (get | GET | (reset | [--fatal] [--] ))\n"); + printf("USAGE: slack (get | GET | ((reset | ) [--fatal] [--] ))\n"); printf("\n"); printf("The must be a positive number optionally with a suffix:\n"); printf(" ns n nanoseconds (default)\n"); - printf(" µs µ ns n microseconds\n"); + printf(" µs µ us u microseconds\n"); printf(" ms m milliseconds\n"); printf(" s seconds\n"); printf("\n"); -- cgit v1.2.3-70-g09d2