From f9442444d8e0688c2f9aa112729baa80245643db Mon Sep 17 00:00:00 2001 From: Inaky Perez-Gonzalez Date: Thu, 23 Apr 2009 18:28:40 -0700 Subject: wimaxll: when --commands is specified, only print the command names Otherwise the output is unreadable. Need to find a way to print just the summary. Signed-off-by: Inaky Perez-Gonzalez --- bin/wimaxll.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/bin/wimaxll.c b/bin/wimaxll.c index e24ac1d..5a32305 100644 --- a/bin/wimaxll.c +++ b/bin/wimaxll.c @@ -134,20 +134,8 @@ static void __cmd_list_itr(gpointer _cmd, gpointer _f) { struct cmd *cmd = _cmd; - - w_print("%s: ", cmd->name); - argp_help(&cmd->argp, stdout, - 0 -// | ARGP_HELP_SHORT_USAGE -// | ARGP_HELP_SEE - | ARGP_HELP_LONG - | ARGP_HELP_PRE_DOC - | ARGP_HELP_POST_DOC - | ARGP_HELP_DOC -// | ARGP_HELP_BUG_ADDR -// | ARGP_HELP_LONG_ONLY - , - cmd->name); + + w_print("%s\n", cmd->name); } -- cgit v1.2.3