Skip to content
Snippets Groups Projects
Commit c7c47a3f authored by youfeng's avatar youfeng
Browse files

b 2295

r Jacob

add a missing arg to printf, make the program exit with 1 on args error
parent 6f8b7755
No related branches found
No related tags found
No related merge requests found
...@@ -354,8 +354,8 @@ main(int argc, char * const argv[]) ...@@ -354,8 +354,8 @@ main(int argc, char * const argv[])
if (argc < i) { if (argc < i) {
printf("Too few args!\n"); printf("Too few args!\n");
printf("Usage: %s <source> <target> [-v] [-n] [-o ...]\n"); printf("Usage: %s <source> <target> [-v] [-n] [-o ...]\n", argv[0]);
exit(-1); exit(1);
} }
if (verbose) if (verbose)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment