Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
scripts: Remove sub-commands from collect script
Browse files Browse the repository at this point in the history
Drop support for the `help` and `version` sub-commands in favour of
their CLI options only.

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel committed Mar 9, 2018
1 parent 81f6205 commit f101d48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data/collect-data.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ Description: Run this script as root to obtain a markdown-formatted summary
Options:
-h | --help | help : show this usage summary.
-v | --version | version : show program version.
-h | --help : show this usage summary.
-v | --version : show program version.
EOT
}
Expand Down Expand Up @@ -356,8 +356,8 @@ show_runtime()
main()
{
case "$1" in
-h|--help|help) usage && exit 0;;
-v|--version|version) version && exit 0;;
-h|--help) usage && exit 0;;
-v|--version) version && exit 0;;
esac

[ $(id -u) -eq 0 ] || die "Need to run as root"
Expand Down

0 comments on commit f101d48

Please sign in to comment.