diff options
author | Rory Bradford <roryrjb@gmail.com> | 2020-04-14 16:28:22 +0100 |
---|---|---|
committer | Rory Bradford <roryrjb@gmail.com> | 2020-04-14 16:28:22 +0100 |
commit | 73565a09bde5f039b23069ab1c7a788c6243c249 (patch) | |
tree | 6160b24285454bbcd64c1828351fdf4080219362 | |
parent | ed433c3540e3ee1d89f15331688b7d48c063c626 (diff) | |
download | rf-73565a09bde5f039b23069ab1c7a788c6243c249.tar.gz |
Tidy up help text
Signed-off-by: Rory Bradford <roryrjb@gmail.com>
-rw-r--r-- | rf.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/rf.c b/rf.c index 1bd532a..6073f06 100644 --- a/rf.c +++ b/rf.c @@ -33,15 +33,14 @@ static int usage(char *error) { fprintf(stderr, "Error: %s\n\n", error); } - fprintf(stderr, "Usage: %s [OPTIONS]\n", NAME); - fprintf(stderr, "\nOptions:\n"); + fprintf(stderr, "Usage: %s [OPTIONS] PATTERNS...\n\n", NAME); + fprintf(stderr, "Options:\n"); fprintf(stderr, " --basename, -b only show basename in results\n"); fprintf(stderr, " --dirname, -d only show dirname in results\n"); fprintf(stderr, " --invert, -v invert matching\n"); - fprintf(stderr, " --limit=n limit to [n] results, allif 0\n"); - fprintf(stderr, "\n --help, -h show help\n"); - fprintf(stderr, " --version, -V show version\n"); - fprintf(stderr, "\n"); + fprintf(stderr, " --limit=n limit to [n] results\n\n"); + fprintf(stderr, " --help, -h show help\n"); + fprintf(stderr, " --version, -V show version\n\n"); return version(error); } |