sshkeys-lint learns '-h'
This commit is contained in:
parent
c50b0813f6
commit
d9ae3ed697
|
@ -8,7 +8,8 @@ use warnings;
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
my $admin = 0;
|
my $admin = 0;
|
||||||
my $quiet = 0;
|
my $quiet = 0;
|
||||||
GetOptions('admin|a=s' => \$admin, 'quiet|q' => \$quiet);
|
my $help = 0;
|
||||||
|
GetOptions('admin|a=s' => \$admin, 'quiet|q' => \$quiet, 'help|h' => $help);
|
||||||
|
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
$Data::Dumper::Deepcopy = 1;
|
$Data::Dumper::Deepcopy = 1;
|
||||||
|
@ -31,7 +32,7 @@ sub msg {
|
||||||
print "sshkeys-lint: " . ( $warning ? "WARNING: " : "" ) . $_ for @_;
|
print "sshkeys-lint: " . ( $warning ? "WARNING: " : "" ) . $_ for @_;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ARGV or not -t or usage();
|
usage() if not @ARGV and -t or $help;
|
||||||
our @pubkeyfiles = @ARGV; @ARGV = ();
|
our @pubkeyfiles = @ARGV; @ARGV = ();
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
# ------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue