aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2018-02-15 16:15:46 +0100
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2018-02-20 11:20:20 +0000
commitc64b2415d326f21119399b76549ef9de3195b538 (patch)
treeceaf6c2c682a23568a7daf6205ef34096476e013
parent884490eaaec3b3a150b4262aee3a318dda2ea2c3 (diff)
init-repo: complain about non-option arguments
otherwise abuse may go unnoticed (at this stage ...). Change-Id: Ic8c2a843a941cdeb2d69542830eccf7fadcf252d Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rwxr-xr-xinit-repository1
1 files changed, 1 insertions, 0 deletions
diff --git a/init-repository b/init-repository
index 11a75ffd..875aec2b 100755
--- a/init-repository
+++ b/init-repository
@@ -243,6 +243,7 @@ sub parse_arguments
$self->{'mirror-url'} = $OSLO_MIRROR_URL_BASE;
},
) || printUsage(2);
+ @ARGV && printUsage(2);
# Replace any double trailing slashes from end of mirror
$self->{'mirror-url'} =~ s{//+$}{/};