summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2014-01-27 12:43:44 +0000
committerOlivier Gayot <duskcoder@gmail.com>2014-01-27 12:43:44 +0000
commit9aa9983fb7e737d2fa7d1c61b1f26411dbd04407 (patch)
tree68a57cd561cf3fe0e0d8faf417c2276e14836f32 /main.c
parenta9f072448d2ffd9f1f275367533945e7a92237a3 (diff)
update the usage message and the README
Refs: #1
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/main.c b/main.c
index 4f4dc97..ac07f54 100644
--- a/main.c
+++ b/main.c
@@ -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);
}