We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add -h and -V options
Basic getopts version:
getopts
#----------------------------------------------------------------------- # Handle command line arguments #----------------------------------------------------------------------- while getopts ":hV" opt do # shellcheck disable=SC2214 case "${opt}" in h|help ) _usage; exit 0 ;; V|version ) _version; exit 0 ;; \? ) printf '\nInvalid option: %s\n\n' "${OPTARG}" _usage; exit 2 ;; esac # --- end of case --- done shift $(( OPTIND-1 ))
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Add -h and -V options
Basic
getopts
version:The text was updated successfully, but these errors were encountered: