summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2021-11-11 20:31:07 +0200
committergramanas <anastasis.gramm2@gmail.com>2021-11-11 20:31:18 +0200
commit2e00a24994e094efc47fce4501b134caa801ea2c (patch)
tree883412c7086f4bfadedb9e27b7b57822af14ac0f /main.c
parentaafa144e680fe3d11f0e59ea779dff1caa96ef67 (diff)
downloadfoodtools-2e00a24994e094efc47fce4501b134caa801ea2c.tar.gz
foodtools-2e00a24994e094efc47fce4501b134caa801ea2c.tar.bz2
foodtools-2e00a24994e094efc47fce4501b134caa801ea2c.zip
Add readme & help
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;
}