mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Complain about extraneous command line arguments.
This commit is contained in:
parent
ca4125f7b3
commit
fe468ebbfb
1 changed files with 3 additions and 0 deletions
|
|
@ -316,6 +316,9 @@ MAIN:{
|
|||
"c|config=s" => \$config,
|
||||
"e|etcdir=s" => \$etcdir,
|
||||
) or usage();
|
||||
if (@ARGV) {
|
||||
usage();
|
||||
}
|
||||
|
||||
if (defined($etcdir)) {
|
||||
chdir($etcdir)
|
||||
|
|
|
|||
Loading…
Reference in a new issue