aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ Pipkin <j@dawnrazor.net>2012-09-08 12:48:08 -0500
committerJ Pipkin <j@dawnrazor.net>2012-09-08 12:48:08 -0500
commitec9042d5a06073dfe698099b455da3192e2f7783 (patch)
tree313ebc3ea113693142f8e04d7ce7eb857118b472
parent65de20fd27ecc3dcc12ef21b2e0dcd74b9fe8f14 (diff)
downloadsbotools2-ec9042d5a06073dfe698099b455da3192e2f7783.tar.xz
sbocheck converted to Getopt::Long
-rwxr-xr-xsbocheck8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbocheck b/sbocheck
index f8d89c2..80ee3ff 100755
--- a/sbocheck
+++ b/sbocheck
@@ -13,13 +13,13 @@ use 5.12.3;
use strict;
use warnings FATAL => 'all';
use SBO::Lib;
-use Getopt::Std;
+use Getopt::Long qw(:config bundling);
use Text::Tabulate;
-my %options;
-getopts ('v',\%options);
+my $vers;
+GetOptions ('version|v' => \$vers);
-show_version && exit 0 if exists $options{v};
+show_version && exit 0 if $vers;
update_tree;