Skip to content
New issue

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

template[sh-py] --> production standard 8 --usage #22

Open
BradleyA opened this issue May 31, 2019 · 2 comments
Open

template[sh-py] --> production standard 8 --usage #22

BradleyA opened this issue May 31, 2019 · 2 comments
Assignees
Labels
enhancement Increase or improve in quality, performance, business value, function, or user satisfaction. new command/service

Comments

@BradleyA
Copy link
Owner

add display_usage function to display_help so users only needing usage help (me) can receive it without pages of display_help

options: --usage, -usage, usage, -u

@BradleyA BradleyA added enhancement Increase or improve in quality, performance, business value, function, or user satisfaction. new command/service labels May 31, 2019
@BradleyA BradleyA added this to the production standard 8 milestone May 31, 2019
@BradleyA BradleyA self-assigned this May 31, 2019
@BradleyA
Copy link
Owner Author

completed for template.sh, reopening for template.py

@BradleyA BradleyA reopened this May 31, 2019
@BradleyA
Copy link
Owner Author

This design change is in support of the new production standard 9.0 Parse CLI options and arguments section which allow option to be used in any order.

### production standard 8.3.2XX --usage
display_usage() {
COMMAND_NAME=$(echo $0 | sed 's/^.*\///')
echo -e "\n${NORMAL}${0}\n   brief description . . ."
echo -e "\nUSAGE"
echo -e "   ${COMMAND_NAME} [-c <CLUSTER>] [-d <DATA_DIR>] [-a <ADMUSER>] [-f <PATH>/<FILE_NAME>]\n"
echo    "   ${COMMAND_NAME} [--help | -help | help | -h | h | -?]"
echo    "   ${COMMAND_NAME} [--usage | -usage | -u]"
echo    "   ${COMMAND_NAME} [--version | -version | -v]"
}

BradleyA added a commit that referenced this issue Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Increase or improve in quality, performance, business value, function, or user satisfaction. new command/service
Projects
None yet
Development

No branches or pull requests

1 participant