diff options
author | J Pipkin <j@dawnrazor.net> | 2012-09-08 12:48:08 -0500 |
---|---|---|
committer | J Pipkin <j@dawnrazor.net> | 2012-09-08 12:48:08 -0500 |
commit | ec9042d5a06073dfe698099b455da3192e2f7783 (patch) | |
tree | 313ebc3ea113693142f8e04d7ce7eb857118b472 | |
parent | 65de20fd27ecc3dcc12ef21b2e0dcd74b9fe8f14 (diff) | |
download | sbotools2-ec9042d5a06073dfe698099b455da3192e2f7783.tar.xz |
sbocheck converted to Getopt::Long
-rwxr-xr-x | sbocheck | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |