diff options
author | Jacob Pipkin <j@dawnrazor.net> | 2012-06-01 12:45:24 -0500 |
---|---|---|
committer | Jacob Pipkin <j@dawnrazor.net> | 2012-06-01 12:45:24 -0500 |
commit | a8e3ae49bf5021ae6a7c5778628e5343aaea4275 (patch) | |
tree | f24dc71d255e1f451a31a17bf8435b0f0599b7e2 /sboinstall | |
parent | 7439b87570df6b021f53c29b11d37d831fbd49a1 (diff) | |
download | sbotools2-a8e3ae49bf5021ae6a7c5778628e5343aaea4275.tar.xz |
added -R option to sbo(install|upgrade) to view README but not parse requirements
Diffstat (limited to 'sboinstall')
-rwxr-xr-x | sboinstall | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -28,12 +28,13 @@ Options: -j: specify "-j" setting to make, for multicore systems; overrides conf file. -p: install an SBo as a -compat32 pkg on a multilib x86_64 system. -r: skip viewing of the SBo README. + -R: view the README but do not attempt to parse requirements. EOF } my %options; -getopts ('hvcdripj:', \%options); +getopts ('hvcdripj:R', \%options); show_usage () and exit (0) if exists $options{h}; show_version () and exit (0) if exists $options{v}; @@ -41,7 +42,7 @@ show_version () and exit (0) if exists $options{v}; show_usage () and exit (0) unless exists $ARGV[0]; # setup any options which do not require arguments -my @opts1 = ('c', 'd', 'r', 'i', 'p'); +my @opts1 = ('c', 'd', 'r', 'i', 'p', 'R'); for my $opt (@opts1) { unshift (@ARGV, "-$opt") if exists $options{$opt}; } |