diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-11-14 20:39:19 +0200 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-11-14 20:39:19 +0200 |
commit | 11bcc43a2c9e2787c861debda6b94e0550065402 (patch) | |
tree | e26a64040dfc86afa1d69f051e899e14c461e771 /src/actions.c | |
parent | 7b3eb51ec3ea3f96dc3d794e799f0d61c3e1d7be (diff) | |
download | ck-11bcc43a2c9e2787c861debda6b94e0550065402.tar.gz ck-11bcc43a2c9e2787c861debda6b94e0550065402.tar.bz2 ck-11bcc43a2c9e2787c861debda6b94e0550065402.zip |
Simplify cli parser
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/actions.c b/src/actions.c index dde18ef..4620c0d 100644 --- a/src/actions.c +++ b/src/actions.c @@ -305,11 +305,10 @@ int run_HELP(UserOpt *opt, Conf *conf) { } switch(parser_get_action(list_get(opt->args), NULL)) { -#define X(ACTION) \ - case CKA_##ACTION: \ - get_possible_action_strings(tmp, CKA_##ACTION); \ - HELP("%s", tmp); \ - print_##ACTION##_help(); \ +#define X(ACTION) \ + case CKA_##ACTION: \ + HELP("%s", get_possible_action_strings(tmp, CKA_##ACTION)); \ + print_##ACTION##_help(); \ return 0; CK_ACTIONS #undef X |