diff options
author | pink-mist <andreas.guldstrand@gmail.com> | 2017-01-13 05:18:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-13 05:18:21 +0100 |
commit | 3b369d8e8751e87622e3b0a356b8fcfe6cfeb969 (patch) | |
tree | 0b745c1e371f5fab32d5173996a709112f4e3f5b | |
parent | 88b3d4dada94b96a036a2f1838b1213e04cfec5d (diff) | |
parent | 3f0747740e418f616cf5aaba566b7c02a05bac90 (diff) | |
download | sbotools-3b369d8e8751e87622e3b0a356b8fcfe6cfeb969.tar.xz |
Merge pull request #51 from chinarulezzz/fix_sboconfig_opts
sboconfig: fix show_usage to display long options
-rwxr-xr-x | sboconfig | 9 | ||||
-rwxr-xr-x | t/15-usage.t | 9 |
2 files changed, 12 insertions, 6 deletions
@@ -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: |