mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Fixes from review, post-rebase
This commit is contained in:
parent
9f05fe5bfa
commit
5ca0bb79c8
15 changed files with 59 additions and 30 deletions
|
@ -107,7 +107,7 @@ void usage(const char* prog, int code)
|
|||
fprintf(stderr, " -s|--rulefile <rulefile> | read rules from given file\n");
|
||||
fprintf(stderr, " -t|--tracefile <tracefile> | activate execution tracing\n");
|
||||
fprintf(stderr, " -u|--usage-issues | find variable usage issues and exit\n");
|
||||
fprintf(stderr, " --no-usage-warnings | suppress warnings of unused "
|
||||
fprintf(stderr, " --no-unused-warnings | suppress warnings of unused "
|
||||
"functions/hooks/events\n");
|
||||
fprintf(stderr, " -v|--version | print version and exit\n");
|
||||
fprintf(stderr, " -w|--writefile <writefile> | write to given tcpdump file\n");
|
||||
|
@ -369,7 +369,7 @@ Options parse_cmdline(int argc, char** argv)
|
|||
}
|
||||
|
||||
int profile_scripts = 0;
|
||||
int no_usage_warnings = 0;
|
||||
int no_unused_warnings = 0;
|
||||
|
||||
struct option long_opts[] = {
|
||||
{"parse-only", no_argument, nullptr, 'a'},
|
||||
|
@ -413,7 +413,7 @@ Options parse_cmdline(int argc, char** argv)
|
|||
#endif
|
||||
|
||||
{"profile-scripts", optional_argument, &profile_scripts, 1},
|
||||
{"no-usage-warnings", no_argument, &no_usage_warnings, 1},
|
||||
{"no-unused-warnings", no_argument, &no_unused_warnings, 1},
|
||||
{"pseudo-realtime", optional_argument, nullptr, '~'},
|
||||
{"jobs", optional_argument, nullptr, 'j'},
|
||||
{"test", no_argument, nullptr, '#'},
|
||||
|
@ -618,8 +618,8 @@ Options parse_cmdline(int argc, char** argv)
|
|||
profile_scripts = 0;
|
||||
}
|
||||
|
||||
if ( no_usage_warnings )
|
||||
rval.no_usage_warnings = true;
|
||||
if ( no_unused_warnings )
|
||||
rval.no_unused_warnings = true;
|
||||
break;
|
||||
|
||||
case '?':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue