Skip to content

Commit 02c2b6a

Browse files
committed
melting-pot: allow multiple uses of -cier
This makes it easier to break up long lines for readability.
1 parent 9ebdfde commit 02c2b6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

melting-pot.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,19 @@ parseArguments() {
124124
shift
125125
;;
126126
-c|--changes)
127-
changes="$2"
127+
test "$changes" && changes="$changes,$2" || changes="$2"
128128
shift
129129
;;
130130
-i|--includes)
131-
includes="$2"
131+
test "$includes" && includes="$includes,$2" || includes="$2"
132132
shift
133133
;;
134134
-e|--excludes)
135-
excludes="$2"
135+
test "$excludes" && excludes="$excludes,$2" || excludes="$2"
136136
shift
137137
;;
138138
-r|--remoteRepos)
139-
remoteRepos="$2"
139+
test "$remoteRepos" && remoteRepos="$remoteRepos,$2" || remoteRepos="$2"
140140
shift
141141
;;
142142
-l|--localRepo)

0 commit comments

Comments
 (0)