Skip to content

Commit

Permalink
Allow '-h|--help|--usage' as usable options (minor bugfix)
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Dec 17, 2024
1 parent 6ae2c29 commit 787ddf1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -5816,6 +5816,11 @@ while :; do
set -- "$@" "version"
break
;;
-h|--help|--usage)
shift "$#"
set -- "$@" "help"
break
;;
-*)
user_error "\
Unknown option '$opt'.
Expand Down Expand Up @@ -5864,8 +5869,7 @@ cmd="$1"
unset -v require_pki require_ca quiet_vars

case "$cmd" in
''|help|-h|--help|--usage| \
version|show-host|rand|random)
''|help|version|show-host|rand|random)
unset -v EASYRSA_SILENT
quiet_vars=1
;;
Expand Down

0 comments on commit 787ddf1

Please sign in to comment.