diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-05 12:59:37 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-05 12:59:37 +0100 |
commit | 90c7e9fb01615e21c20c0aca0b3ecf62b73d3c49 (patch) | |
tree | 55f75cc7b856ab10fac3dea4826ae24974246f4f /sboconfig | |
parent | 89fa913f7cb2dcb5038dfb1db19f54fd99ff2f75 (diff) | |
download | sbotools2-90c7e9fb01615e21c20c0aca0b3ecf62b73d3c49.tar.xz |
Change sboconfig flag for local overrides to -o
Because -l is already in use.
Diffstat (limited to 'sboconfig')
-rwxr-xr-x | sboconfig | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -41,7 +41,7 @@ Config options (defaults shown): PKG_DIR: set a directory to store packages in. -s|--sbo-home /usr/sbo: SBO_HOME: set the SBo directory. - -l|--local-overrides FALSE: + -o|--local-overrides FALSE: LOCAL_OVERRIDES: a directory containing local overrides. -V|--slackware-version FALSE: SLACKWARE_VERSION: use the SBo repository for this version. @@ -53,7 +53,7 @@ my %options; GetOptions(\%options, 'help|h', 'version|v', 'list|l', 'noclean|c=s', 'distclean|d=s', 'jobs|j=s', 'pkg-dir|p=s', 'sbo-home|s=s', - 'local-overrides|l=s', 'slackware-version|V=s'); + 'local-overrides|o=s', 'slackware-version|V=s'); show_usage() and exit 0 if exists $options{help}; show_version() and exit 0 if exists $options{version}; @@ -74,7 +74,7 @@ my %params = ( JOBS => 'j|--jobs', PKG_DIR => 'p|--pkg-dir', SBO_HOME => 's|--sbo-home', - LOCAL_OVERRIDES => 'l|--local-overrides', + LOCAL_OVERRIDES => 'o|--local-overrides', SLACKWARE_VERSION => 'V|--slackware-version', ); @@ -111,7 +111,7 @@ if (exists $changes{SBO_HOME}) { usage_error("$warn -s") unless $changes{SBO_HOME} =~ qr#^/#; } if (exists $changes{LOCAL_OVERRIDES}) { - usage_error("$warn -l") unless $changes{LOCAL_OVERRIDES} =~ qr#^(/|FALSE$)#; + usage_error("$warn -o") unless $changes{LOCAL_OVERRIDES} =~ qr#^(/|FALSE$)#; } if (exists $changes{SLACKWARE_VERSION}) { usage_error("$warn -V") unless $changes{SLACKWARE_VERSION} =~ m/^(\d+\.\d+|FALSE)$/; |