Skip to content
This repository was archived by the owner on May 14, 2018. It is now read-only.

Commit 950533b

Browse files
authored
Merge pull request #2 from smartbox-io/create-as-argument
Add create as argument instead of being the default
2 parents f3000ec + ab30451 commit 950533b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

hack

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
. utils.sh
44

5-
ACTION="create"
5+
ACTION=
66

77
POOL=${POOL:-"default"}
88
BRAINS="1"
@@ -40,10 +40,13 @@ while [[ $# > 0 ]] ; do
4040
CELLS="$2"
4141
shift
4242
;;
43-
-c|--cluster-name)
43+
--cluster-name)
4444
CLUSTER="$2"
4545
shift
4646
;;
47+
-c|--create)
48+
ACTION="create"
49+
;;
4750
--debug)
4851
set -x
4952
;;
@@ -67,6 +70,9 @@ while [[ $# > 0 ]] ; do
6770
--wait-for-cells)
6871
ACTION="wait_for_cells"
6972
;;
73+
*)
74+
fatal "Unknown argument: $1"
75+
;;
7076
esac
7177
shift
7278
done

0 commit comments

Comments
 (0)