diff options
author | 2019-02-05 22:15:53 +0100 | |
---|---|---|
committer | 2019-02-05 22:15:53 +0100 | |
commit | fb34781d8d006a38363c73b0d6688338b85efa7e (patch) | |
tree | 4ba49b18931bfe62d7847b4bfa7cfa233493d802 | |
parent | use correct struct member for offset (diff) | |
download | firejail-fb34781d8d006a38363c73b0d6688338b85efa7e.tar.gz firejail-fb34781d8d006a38363c73b0d6688338b85efa7e.tar.zst firejail-fb34781d8d006a38363c73b0d6688338b85efa7e.zip |
move usage check to single place
-rw-r--r-- | src/fldd/main.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/fldd/main.c b/src/fldd/main.c index d9adcdcf6..566763ff4 100644 --- a/src/fldd/main.c +++ b/src/fldd/main.c | |||
@@ -297,7 +297,7 @@ printf("\n"); | |||
297 | } | 297 | } |
298 | 298 | ||
299 | 299 | ||
300 | if (strcmp(argv[1], "--help") == 0) { | 300 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-?") == 0) { |
301 | usage(); | 301 | usage(); |
302 | return 0; | 302 | return 0; |
303 | } | 303 | } |
@@ -312,11 +312,6 @@ printf("\n"); | |||
312 | if (quiet && strcmp(quiet, "yes") == 0) | 312 | if (quiet && strcmp(quiet, "yes") == 0) |
313 | arg_quiet = 1; | 313 | arg_quiet = 1; |
314 | 314 | ||
315 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-?") ==0) { | ||
316 | usage(); | ||
317 | return 0; | ||
318 | } | ||
319 | |||
320 | int fd = STDOUT_FILENO; | 315 | int fd = STDOUT_FILENO; |
321 | // attempt to open the file | 316 | // attempt to open the file |
322 | if (argc == 3) { | 317 | if (argc == 3) { |