Skip to content

Commit

Permalink
docs: fix doc for display version
Browse files Browse the repository at this point in the history
  • Loading branch information
hernancerm committed Jul 7, 2024
1 parent e5beff4 commit d2fb0a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Print the below message with `gold --help`. This is the public API.
gold [--help|-h]
Display this help message.
gold [--version|-v]
gold (--version|-v)
Display the version.
gold <config-file> <sub-command>
Expand Down
4 changes: 2 additions & 2 deletions gold
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ typeset -r help_message='
gold [--help|-h]
Display this help message.
gold [--version|-v]
gold (--version|-v)
Display the version.
gold <config-file> <sub-command>
Expand Down Expand Up @@ -35,7 +35,7 @@ if [[ "${1}" = '--help' ]] || [[ "${1}" = '-h' ]] || [[ "${#@}" -eq 0 ]]; then
return 0
fi

# Form: gold [--version|-v]
# Form: gold (--version|-v)

if [[ "${1}" = '--version' ]] || [[ "${1}" = '-v' ]]; then
echo "${version}"
Expand Down

0 comments on commit d2fb0a3

Please sign in to comment.