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/actionhelper.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/actionhelper.c') 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; -- cgit v1.2.3