aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-16 18:32:26 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-16 18:32:26 +0200
commitf8d49a5b2424b9abba30083017fa6435f4ba6343 (patch)
treeb2e1e156bff4f6cafa9601965ef1ccb1bc419588
parent0c9c086c92595f4848686c861863365267498aab (diff)
downloadsbotools2-f8d49a5b2424b9abba30083017fa6435f4ba6343.tar.xz
Rewrite another show_usage invocation
-rwxr-xr-xsboconfig5
1 files changed, 4 insertions, 1 deletions
diff --git a/sboconfig b/sboconfig
index ebeccd5..9c5483d 100755
--- a/sboconfig
+++ b/sboconfig
@@ -90,7 +90,10 @@ if (exists $options{list}) {
exit 0;
}
-show_usage() and exit 0 unless keys %options > 0;
+if (not %options) {
+ show_usage();
+ exit 0;
+}
# setup what's being changed, sanity check.
my %changes;