From 90c7e9fb01615e21c20c0aca0b3ecf62b73d3c49 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Sat, 5 Dec 2015 12:59:37 +0100 Subject: Change sboconfig flag for local overrides to -o Because -l is already in use. --- sboconfig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sboconfig') diff --git a/sboconfig b/sboconfig index 0a42c61..90e30b6 100755 --- a/sboconfig +++ b/sboconfig @@ -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)$/; -- cgit v1.2.3