From 2e00a24994e094efc47fce4501b134caa801ea2c Mon Sep 17 00:00:00 2001 From: gramanas Date: Thu, 11 Nov 2021 20:31:07 +0200 Subject: Add readme & help --- main.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 5012bb2..68de644 100644 --- a/main.c +++ b/main.c @@ -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; } -- cgit v1.2.3