simple-machines / ansible-aws-infra-services

Manage your AWS infrastructure and ECS tasks with two separate ansible playbooks
Apache License 2.0
24 stars 15 forks source link

All scripts suggest arguments #50

Closed thsutton closed 7 years ago

thsutton commented 7 years ago

If executed with the incorrect number of arguments editvalue.sh and run-*.sh all report the error, a usage message, and commands for all discovered clusters, services, and environments.

$ ./editvault.sh 
ERROR: ./editvault.sh requires 2 or 3 arguments; 0 provided. 

NAME
    editvault.sh - Edit ansible vault contents

SYNOPSIS
    ./editvault.sh CLUSTER SERVICE ENV
    ./editvault.sh CLUSTER ENV
    ./editvault.sh

OPTIONS

    You may want to run one of the following commands:

    ./editvault.sh example-cluster dev
    ./editvault.sh example-cluster ecs-nginx-proxy dev
    ./editvault.sh example-cluster postgres-example dev
    ./editvault.sh example-cluster postgres-example prod
    ./editvault.sh lol dev
    ./editvault.sh lol prod
    ./editvault.sh lol ecs-nginx-proxy dev
    ./editvault.sh lol postgres-example dev
$ ./run-service.sh 
ERROR: ./run-service.sh requires 3 arguments; 0 provided. 

NAME
    run-service.sh - Run Ansible with service configurations

SYNOPSIS
    ./run-service.sh CLUSTER SERVICE ENV

OPTIONS

    You may want to run one of the following commands:

    ./run-service.sh example-cluster ecs-nginx-proxy dev
    ./run-service.sh example-cluster postgres-example dev
    ./run-service.sh example-cluster postgres-example prod
    ./run-service.sh lol ecs-nginx-proxy dev
    ./run-service.sh lol postgres-example dev
$ ./run-infrastructure.sh 
Error: ./run-infrastructure.sh requires 2 arguments. 

NAME
    run-infrastructure.sh - Run Ansible with infrastructure configurations

SYNOPSIS
    ./run-infrastructure.sh CLUSTER ENV

OPTIONS

    You may want to run one of the following commands:

    ./run-infrastructure.sh example-cluster dev
    ./run-infrastructure.sh lol dev
    ./run-infrastructure.sh lol prod