mirror of
https://github.com/mas-cli/mas
synced 2025-02-17 21:18:24 +00:00
Update script usage output.
Fix acceptable argument count. Partial #638 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
parent
86a13bb5e6
commit
7523bc91d0
3 changed files with 7 additions and 8 deletions
|
@ -16,7 +16,7 @@ PROJECT_PATH="$(git rev-parse --show-toplevel)"
|
||||||
LOCAL_MAS_FORMULA_PATH="${PROJECT_PATH}/Homebrew/mas.rb"
|
LOCAL_MAS_FORMULA_PATH="${PROJECT_PATH}/Homebrew/mas.rb"
|
||||||
|
|
||||||
function usage {
|
function usage {
|
||||||
echo "Usage: brew_core_update [-d] v0.0 [sha1_hash]"
|
echo "Usage: brew_core_update [-d] [<version_tag> [<sha1_hash>]]"
|
||||||
echo " -d option enables dry run mode"
|
echo " -d option enables dry run mode"
|
||||||
echo " version will be inferred using version script if not provided"
|
echo " version will be inferred using version script if not provided"
|
||||||
echo " sha will be inferred from the current commit if not provided"
|
echo " sha will be inferred from the current commit if not provided"
|
||||||
|
|
|
@ -8,15 +8,14 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
function usage {
|
function usage {
|
||||||
echo "Usage: brew_tap_update [-d] v0.0 [sha1_hash]"
|
echo "Usage: brew_tap_update [<version_tag> [<sha1_hash>]]"
|
||||||
echo " -d option enables dry run mode"
|
|
||||||
echo " version will be inferred using version script if not provided"
|
echo " version will be inferred using version script if not provided"
|
||||||
echo " sha will be inferred from the current commit if not provided"
|
echo " sha will be inferred from the current commit if not provided"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Max 3 arguments
|
# Max 2 arguments
|
||||||
if [[ $# -gt 3 ]]; then
|
if [[ $# -gt 2 ]]; then
|
||||||
usage 1>&2
|
usage 1>&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -18,9 +18,9 @@ LOCAL_TAP_FORMULA_PATH="Homebrew/mas-tap.rb"
|
||||||
SWIFT_PACKAGE="Sources/mas/Package.swift"
|
SWIFT_PACKAGE="Sources/mas/Package.swift"
|
||||||
|
|
||||||
function usage {
|
function usage {
|
||||||
echo "Usage: version_bump v0.0 [sha1_hash]"
|
echo "Usage: version_bump <version_tag> [<sha1_hash>]"
|
||||||
echo "- existing tag name"
|
echo " existing tag name"
|
||||||
echo "- sha will be inferred from the given tag if not provided"
|
echo " sha will be inferred from the given tag if not provided"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue