diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-09-26 12:07:48 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-09-26 12:07:48 +0300 |
commit | 7d0d0e5f1570f06564e07f5e55b9bef9db517f8b (patch) | |
tree | e8007bd87a3cb264346cd0da5544bd1f8f0400ac /src/actionhelper.c | |
parent | ba6ff53bebd1ea6c51f12ba5dd218dcce8348df1 (diff) | |
download | ck-7d0d0e5f1570f06564e07f5e55b9bef9db517f8b.tar.gz ck-7d0d0e5f1570f06564e07f5e55b9bef9db517f8b.tar.bz2 ck-7d0d0e5f1570f06564e07f5e55b9bef9db517f8b.zip |
list can now show attributes (secret, primary)
Diffstat (limited to 'src/actionhelper.c')
-rw-r--r-- | src/actionhelper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/actionhelper.c b/src/actionhelper.c index e0876eb..c3b1b81 100644 --- a/src/actionhelper.c +++ b/src/actionhelper.c @@ -115,11 +115,16 @@ ListOpt list_make_options(cklist *args) { ListOpt listOpt = { ._lt = LT_NONE, ._lst = LST_PLAIN, + .attr = 0, .err = 0 }; if (list_size(args)) { do { + if (strcmp(list_get(args), "-a") == 0) { + listOpt.attr = 1; + continue; + } if (strcmp(list_get(args), "-t") == 0) { if (!list_next(args)) { listOpt.err = 1; |