Closed glours closed 4 years ago
- What I did Change the flag error message for the docker app root command
- How I did it Set a custom FlagErrorFunction to the root command
- How to verify it
run docker app --unknown_flag should return
docker app --unknown_flag
unknown flag: --unknown_flag See 'docker app --help'
echo $? should return an error status code equal to 125
echo $?
125
run docker app install --unknown_flag should return
docker app install --unknown_flag
unknown flag: --unknown_flag See 'docker app install --help'
run docker app should return the usage message
docker app
- A picture of a cute animal (not mandatory but encouraged)
⚠️ PLEASE WAIT BEFORE MERGING
Close to keep consistant behavior with other managed commands & plugin
- What I did Change the flag error message for the docker app root command
- How I did it Set a custom FlagErrorFunction to the root command
- How to verify it
run
docker app --unknown_flag
should returnecho $?
should return an error status code equal to125
run
docker app install --unknown_flag
should returnecho $?
should return an error status code equal to125
run
docker app
should return the usage message- A picture of a cute animal (not mandatory but encouraged)