From 11bcc43a2c9e2787c861debda6b94e0550065402 Mon Sep 17 00:00:00 2001 From: gramanas Date: Wed, 14 Nov 2018 20:39:19 +0200 Subject: Simplify cli parser --- src/actions.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/actions.c') 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 -- cgit v1.2.3