From: Oleg Broytman Date: Thu, 15 Aug 2019 10:31:54 +0000 (+0300) Subject: Feat(scripts): Add `[...params...]` to usage message X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=52f4f4fe0d9d76fa0785de08977f96e667e182a9;p=ansible.git Feat(scripts): Add `[...params...]` to usage message --- diff --git a/playbooks/debian-add-apache-vhost b/playbooks/debian-add-apache-vhost index 8228910..a492090 100755 --- a/playbooks/debian-add-apache-vhost +++ b/playbooks/debian-add-apache-vhost @@ -1,7 +1,7 @@ #! /bin/sh if [ -z "$1" ]; then - echo "Usage: $0 vhost" >&2 + echo "Usage: $0 vhost [...params...]" >&2 exit 1 fi diff --git a/playbooks/debian-add-dns-domain b/playbooks/debian-add-dns-domain index 57ed031..0e2222b 100755 --- a/playbooks/debian-add-dns-domain +++ b/playbooks/debian-add-dns-domain @@ -1,7 +1,7 @@ #! /bin/sh if [ -z "$1" ]; then - echo "Usage: $0 domain" >&2 + echo "Usage: $0 domain [...params...]" >&2 exit 1 fi diff --git a/playbooks/debian-init-system.sh b/playbooks/debian-init-system.sh index d53c6a5..b55955d 100755 --- a/playbooks/debian-init-system.sh +++ b/playbooks/debian-init-system.sh @@ -1,7 +1,7 @@ #! /bin/sh if [ -z "$1" ]; then - echo "Usage: $0 host" >&2 + echo "Usage: $0 host [...params...]" >&2 exit 1 fi diff --git a/playbooks/run-playbook b/playbooks/run-playbook index 542791b..a359ade 100755 --- a/playbooks/run-playbook +++ b/playbooks/run-playbook @@ -1,7 +1,7 @@ #! /bin/sh if [ -z "$1" ]; then - echo "Usage: $0 playbook.yml" >&2 + echo "Usage: $0 playbook.yml [...params...]" >&2 exit 1 fi diff --git a/playbooks/run-role b/playbooks/run-role index 2013fba..3c31ce0 100755 --- a/playbooks/run-role +++ b/playbooks/run-role @@ -1,7 +1,7 @@ #! /bin/sh if [ -z "$1" ]; then - echo "Usage: $0 role" >&2 + echo "Usage: $0 role [...params...]" >&2 exit 1 fi