mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fixed an option processing bug
This commit is contained in:
parent
2bdc56dfcd
commit
97f7bf784b
1 changed files with 15 additions and 15 deletions
|
@ -200,6 +200,8 @@ Options parse_cmdline(int argc, char** argv)
|
|||
zeek_args.emplace_back(argv[i]);
|
||||
}
|
||||
|
||||
if ( i < argc )
|
||||
{
|
||||
// If a script is invoked with Zeek as the interpreter, the arguments provided
|
||||
// directly in the interpreter line of the script won't be broken apart in the
|
||||
// argv on Linux so we split it up here.
|
||||
|
@ -215,8 +217,6 @@ Options parse_cmdline(int argc, char** argv)
|
|||
}
|
||||
}
|
||||
|
||||
if ( i < argc )
|
||||
{
|
||||
// There is an additional increment here to skip over the "--" if it was found.
|
||||
if ( endsWith(argv[i], "--") )
|
||||
++i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue