From 7d0d0e5f1570f06564e07f5e55b9bef9db517f8b Mon Sep 17 00:00:00 2001 From: gramanas Date: Wed, 26 Sep 2018 12:07:48 +0300 Subject: list can now show attributes (secret, primary) --- src/actionparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/actionparser.c') diff --git a/src/actionparser.c b/src/actionparser.c index 580eb01..3e193ff 100644 --- a/src/actionparser.c +++ b/src/actionparser.c @@ -113,7 +113,7 @@ int parse_EDIT(UserOpt *opt) { } int parse_LIST(UserOpt *opt) { /* List expects a maximum of than 3 arguments */ - if (optNum > pos + 3) { + if (optNum > pos + 4) { opt->err = PERR_LIST_WRONG; return -1; } @@ -277,7 +277,7 @@ void print_parser_error(UserOpt *opt) { sprintf(errStr, "Edit config with $EDITOR\nUsage: %s ProgramName or configBasename (or both)", names); break; case PERR_LIST_WRONG: - sprintf(errStr, "List programs, configs and more\nUsage: %s value-to-list (or tree) [-t list-type]", names); + sprintf(errStr, "List programs, configs and more\nUsage: %s value-to-list (or tree) [-t list-type] [-a]", names); break; case PERR_SEARCH_WRONG: sprintf(errStr, "Search through the configs with grep\nUsage: %s search-term", names); -- cgit v1.2.3