mirror of
https://github.com/ovh/the-bastion.git
synced 2025-01-01 13:01:53 +08:00
fix: when no command-line is passed, a warn could be emitted in some cases
This depends on the version of Perl libs, but in any case we shouldn't pass an undef var to GetOptionsFromString, ensure this never happens
This commit is contained in:
parent
d70e52a09b
commit
5c7389e85f
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ else {
|
|||
|
||||
my $remainingOptions;
|
||||
($result, $remainingOptions) = GetOptionsFromString(
|
||||
$beforeOptions,
|
||||
$beforeOptions // "",
|
||||
"port|p=i" => \my $optPort,
|
||||
"verbose+" => \my $verbose,
|
||||
"tty|t" => \my $tty,
|
||||
|
|
Loading…
Reference in a new issue