From 3f0747740e418f616cf5aaba566b7c02a05bac90 Mon Sep 17 00:00:00 2001 From: chinarulezzz Date: Tue, 6 Dec 2016 23:22:43 +0200 Subject: sboconfig: fix show_usage to display long options --- sboconfig | 9 ++++++--- t/15-usage.t | 9 ++++++--- 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: -- cgit v1.2.3