diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-10-29 17:20:28 +0200 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-10-29 17:20:28 +0200 |
commit | 5683c51d17b5eed7d2f070aa4e49cc21b65d82e5 (patch) | |
tree | f6eea31de970bf3b5233545b7296a0d81e60836e /src/actionparser.c | |
parent | 56fdf6de6ee00f1eb4303065c26811310a7c0728 (diff) | |
download | ck-5683c51d17b5eed7d2f070aa4e49cc21b65d82e5.tar.gz ck-5683c51d17b5eed7d2f070aa4e49cc21b65d82e5.tar.bz2 ck-5683c51d17b5eed7d2f070aa4e49cc21b65d82e5.zip |
Add list with basename and update readme
Diffstat (limited to 'src/actionparser.c')
-rw-r--r-- | src/actionparser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actionparser.c b/src/actionparser.c index f04c1d5..1648372 100644 --- a/src/actionparser.c +++ b/src/actionparser.c @@ -123,9 +123,9 @@ int parse_EDIT(UserOpt *opt) { } int parse_LIST(UserOpt *opt) { - /* List expects 1 to 5 arguments */ + /* List expects 1 to 6 arguments */ if (optNum < pos + 1 - || optNum > pos + 5) { + || optNum > pos + 6) { opt->err = PERR_LIST_WRONG; return -1; } @@ -360,7 +360,7 @@ void print_parser_error(UserOpt *opt) { sprintf(errStr, "Edit config with $EDITOR (%s)\nUsage: %s ProgramName [configBasename]", getenv("EDITOR"), names); break; case PERR_LIST_WRONG: - sprintf(errStr, "List programs, configs and more\nUsage: %s {programs|paths|-p ProgramName} [-t list-type] | {tree | ckconf} [-a]", names); + sprintf(errStr, "List programs, configs and more\nUsage: %s {programs|paths|-p ProgramName} [-t list-type] | {tree | ckconf} [-a] [-b]", names); break; case PERR_SEARCH_WRONG: sprintf(errStr, "Search through the configs with grep\nUsage: %s search-term", names); |