diff options
author | Carsten Haitzler <raster@rasterman.com> | 2008-03-28 14:37:29 +0000 |
---|---|---|
committer | Carsten Haitzler <raster@rasterman.com> | 2008-03-28 14:37:29 +0000 |
commit | 9711530071eb7a58165307c6680447f216e58e4a (patch) | |
tree | eef7c05aa170fdd2e51d10810731a110c6bd397c /src/bin | |
parent | 8d600d11bd22eac7375df9fedfed92ac2efa441e (diff) | |
download | eet-9711530071eb7a58165307c6680447f216e58e4a.tar.gz |
up eet to alpha status. see email to e-devel.
SVN revision: 34127
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/eet_main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/eet_main.c b/src/bin/eet_main.c index 8e01f5e..b0ad7dd 100644 --- a/src/bin/eet_main.c +++ b/src/bin/eet_main.c @@ -219,6 +219,7 @@ main(int argc, char **argv) eet_init(); if (argc < 2) { + help: printf("Usage:\n" " eet -l FILE.EET list all keys in FILE.EET\n" " eet -x FILE.EET KEY OUT-FILE extract data stored in KEY in FILE.EET and write to OUT-FILE\n" @@ -230,7 +231,11 @@ main(int argc, char **argv) eet_shutdown(); return 0; } - if ((!strcmp(argv[1], "-l")) && (argc > 2)) + if ((!strncmp(argv[1], "-h", 2))) + { + goto help; + } + else if ((!strcmp(argv[1], "-l")) && (argc > 2)) { do_eet_list(argv[2]); } |