[Pdbg] [PATCH 09/18] main: Print command descriptions in usage
Amitay Isaacs
amitay at ozlabs.org
Wed May 16 16:17:27 AEST 2018
From: Amitay Isaacs <amitay at gmail.com>
Signed-off-by: Amitay Isaacs <amitay at gmail.com>
---
src/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
index 2070ef5..4262450 100644
--- a/src/main.c
+++ b/src/main.c
@@ -136,7 +136,8 @@ static void print_usage(char *pname)
printf("\n");
printf(" Commands:\n");
for (i = 0; i < ARRAY_SIZE(actions); i++)
- printf("\t%s %s\n", actions[i].name, actions[i].args);
+ printf(" %-15s %-27s %s\n", actions[i].name, actions[i].args, actions[i].desc);
+
}
static bool parse_options(int argc, char *argv[])
--
2.17.0
More information about the Pdbg
mailing list