aboutsummaryrefslogtreecommitdiffstats
path: root/src/actionparser.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-09-26 12:07:48 +0300
committergramanas <anastasis.gramm2@gmail.com>2018-09-26 12:07:48 +0300
commit7d0d0e5f1570f06564e07f5e55b9bef9db517f8b (patch)
treee8007bd87a3cb264346cd0da5544bd1f8f0400ac /src/actionparser.c
parentba6ff53bebd1ea6c51f12ba5dd218dcce8348df1 (diff)
downloadck-7d0d0e5f1570f06564e07f5e55b9bef9db517f8b.tar.gz
ck-7d0d0e5f1570f06564e07f5e55b9bef9db517f8b.tar.bz2
ck-7d0d0e5f1570f06564e07f5e55b9bef9db517f8b.zip
list can now show attributes (secret, primary)
Diffstat (limited to 'src/actionparser.c')
-rw-r--r--src/actionparser.c4
1 files changed, 2 insertions, 2 deletions
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);