mirror of
https://github.com/ovh/the-bastion.git
synced 2025-09-11 15:34:18 +08:00
fix: accountUnlock: add missing check_spurious_args and no_auto_abbrev
This commit is contained in:
parent
81aeb2ee3c
commit
8c2b6a410a
1 changed files with 4 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
#>HEADER
|
||||
use common::sense;
|
||||
use Getopt::Long;
|
||||
use Getopt::Long qw(:config no_auto_abbrev no_ignore_case);
|
||||
use File::Basename;
|
||||
use lib dirname(__FILE__) . '/../../lib/perl';
|
||||
use OVH::Result;
|
||||
|
@ -28,6 +28,9 @@ if (!$result) {
|
|||
local $" = ", ";
|
||||
HEXIT('ERR_BAD_OPTIONS', msg => "Error parsing options: @optwarns");
|
||||
}
|
||||
|
||||
OVH::Bastion::Helper::check_spurious_args();
|
||||
|
||||
if (!$account) {
|
||||
HEXIT('ERR_MISSING_PARAMETER', msg => "Missing argument 'account'");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue