mirror of
https://github.com/mas-cli/mas
synced 2024-11-24 20:43:10 +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"
|
||||
|
||||
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 " version will be inferred using version script if not provided"
|
||||
echo " sha will be inferred from the current commit if not provided"
|
||||
|
|
|
@ -8,15 +8,14 @@
|
|||
#
|
||||
|
||||
function usage {
|
||||
echo "Usage: brew_tap_update [-d] v0.0 [sha1_hash]"
|
||||
echo " -d option enables dry run mode"
|
||||
echo "Usage: brew_tap_update [<version_tag> [<sha1_hash>]]"
|
||||
echo " version will be inferred using version script if not provided"
|
||||
echo " sha will be inferred from the current commit if not provided"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Max 3 arguments
|
||||
if [[ $# -gt 3 ]]; then
|
||||
# Max 2 arguments
|
||||
if [[ $# -gt 2 ]]; then
|
||||
usage 1>&2
|
||||
fi
|
||||
|
||||
|
|
|
@ -18,9 +18,9 @@ LOCAL_TAP_FORMULA_PATH="Homebrew/mas-tap.rb"
|
|||
SWIFT_PACKAGE="Sources/mas/Package.swift"
|
||||
|
||||
function usage {
|
||||
echo "Usage: version_bump v0.0 [sha1_hash]"
|
||||
echo "- existing tag name"
|
||||
echo "- sha will be inferred from the given tag if not provided"
|
||||
echo "Usage: version_bump <version_tag> [<sha1_hash>]"
|
||||
echo " existing tag name"
|
||||
echo " sha will be inferred from the given tag if not provided"
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue