diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -20,9 +20,14 @@ static struct opts { }; void -print_help() { - printf("Help!\n"); - +print_help(char * argv0) { + printf("%s [OPTION] FILE ...\n", argv0); + printf("OPTIONS:\n"); + printf("--format json,html,rcp\n"); + printf("--to-{json,html,rcp}\n"); + printf("-j json\n"); + printf("-w html\n"); + printf("-r rcp\n"); } int @@ -95,7 +100,7 @@ main(int argc, char * argv[]) } if (opt.help) { - print_help(); + print_help(argv[0]); return 0; } |