aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpink-mist <andreas.guldstrand@gmail.com>2017-01-13 05:18:21 +0100
committerGitHub <noreply@github.com>2017-01-13 05:18:21 +0100
commit3b369d8e8751e87622e3b0a356b8fcfe6cfeb969 (patch)
tree0b745c1e371f5fab32d5173996a709112f4e3f5b
parent88b3d4dada94b96a036a2f1838b1213e04cfec5d (diff)
parent3f0747740e418f616cf5aaba566b7c02a05bac90 (diff)
downloadsbotools-3b369d8e8751e87622e3b0a356b8fcfe6cfeb969.tar.xz
Merge pull request #51 from chinarulezzz/fix_sboconfig_opts
sboconfig: fix show_usage to display long options
-rwxr-xr-xsboconfig9
-rwxr-xr-xt/15-usage.t9
2 files changed, 12 insertions, 6 deletions
diff --git a/sboconfig b/sboconfig
index ef0d30d..c7bf90c 100755
--- a/sboconfig
+++ b/sboconfig
@@ -27,9 +27,12 @@ sub show_usage {
Usage: $self [options] [arguments]
Options:
- -h: this screen.
- -v: version information.
- -l: show current options.
+ -h|--help:
+ this screen.
+ -v|--version:
+ version information.
+ -l|--list:
+ show current options.
Config options (defaults shown):
-c|--clean FALSE:
diff --git a/t/15-usage.t b/t/15-usage.t
index c53968f..0e5a02a 100755
--- a/t/15-usage.t
+++ b/t/15-usage.t
@@ -50,9 +50,12 @@ my $sboconfig = <<'SBOCONFIG';
Usage: sboconfig [options] [arguments]
Options:
- -h: this screen.
- -v: version information.
- -l: show current options.
+ -h|--help:
+ this screen.
+ -v|--version:
+ version information.
+ -l|--list:
+ show current options.
Config options (defaults shown):
-c|--clean FALSE: