summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c13
1 files changed, 9 insertions, 4 deletions
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;
}