diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2014-01-27 12:43:44 +0000 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2014-01-27 12:43:44 +0000 |
commit | 9aa9983fb7e737d2fa7d1c61b1f26411dbd04407 (patch) | |
tree | 68a57cd561cf3fe0e0d8faf417c2276e14836f32 /main.c | |
parent | a9f072448d2ffd9f1f275367533945e7a92237a3 (diff) |
update the usage message and the README
Refs: #1
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -50,8 +50,13 @@ static int suffix_nops_g = 0; __attribute__((noreturn)) static void usage(const char *arg0) { - fprintf(stderr, "usage: %s --override addr --with addr --stackidx idx\n", arg0); - fprintf(stderr, " %s --override addr --with addr --stackidx idx --addrsize size\n", arg0); + (void)arg0; + + fputs("usage:\n\n", stderr); + fputs( + "ufs_gen " + "[--prefix pfx] [--suffix sfx] [--sfxnops n]\n" + " --override addr --with addr --stackidx idx\n", stderr); exit(EX_USAGE); } |