Accenture / adop-docker-compose

Talk to us on Gitter: https://gitter.im/Accenture/ADOP
https://accenture.github.io/adop-docker-compose
Apache License 2.0
764 stars 573 forks source link

Adding -h to print usage, just to avoid the error message #236

Closed nickdgriffin closed 7 years ago

nickdgriffin commented 7 years ago

Previously "./quickstarh.sh -h" would print an error about it being an invalid parameter and print the usage, now it'll just print the usage.

Also means in future it could have an expanded help if necessary.

RobertNorthard commented 7 years ago

LGTM. Thanks @nickdgriffin.

$ ./quickstart.sh -h
 .....
 .....
Usage:
        ./quickstart.sh 
        -t local 
        [-m <MACHINE_NAME>] 
        [-u <INITIAL_ADMIN_USER>] 
        [-p <INITIAL_ADMIN_PASSWORD>]

        ./quickstart.sh 
        -t aws 
        -m <MACHINE_NAME> 
        -c <AWS_VPC_ID> 
        -r <AWS_DEFAULT_REGION> 
        [-z <AVAILABILITY_ZONE_LETTER>] 
        [-a <AWS_ACCESS_KEY>] 
        [-s <AWS_SECRET_ACCESS_KEY>] 
        [-u <INITIAL_ADMIN_USER>] 
        [-p <INITIAL_ADMIN_PASSWORD>]