@@ 295-334 (lines=40) @@ | ||
292 | } |
|
293 | ||
294 | // Check command line input parameters |
|
295 | function check_activity_arguments() |
|
296 | { |
|
297 | // Filling the globals with input |
|
298 | global $arn; |
|
299 | global $logPath; |
|
300 | global $debug; |
|
301 | global $clientClassPath; |
|
302 | global $name; |
|
303 | ||
304 | // Handle input parameters |
|
305 | if (!($options = getopt("N:A:l:C:hd"))) |
|
306 | usage(); |
|
307 | ||
308 | if (isset($options['h'])) |
|
309 | usage(); |
|
310 | ||
311 | // Debug |
|
312 | if (isset($options['d'])) |
|
313 | $debug = true; |
|
314 | ||
315 | if (isset($options['A']) && $options['A']) { |
|
316 | $arn = $options['A']; |
|
317 | } else if (getenv('SNF_ACTIVITY_ARN')) { |
|
318 | $arn = getenv('SNF_ACTIVITY_ARN'); |
|
319 | } else { |
|
320 | echo "ERROR: You must provide the ARN of your activity (Sfn ARN). Use option [-A <ARN>] or environment variable: 'SNF_ACTIVITY_ARN'\n"; |
|
321 | usage(); |
|
322 | } |
|
323 | ||
324 | if (isset($options['C']) && $options['C']) { |
|
325 | $clientClassPath = $options['C']; |
|
326 | } |
|
327 | ||
328 | if (isset($options['N']) && $options['N']) { |
|
329 | $name = $options['N']; |
|
330 | } |
|
331 | ||
332 | if (isset($options['l'])) |
|
333 | $logPath = $options['l']; |
|
334 | } |
|
335 | ||
336 | ||
337 |
@@ 183-222 (lines=40) @@ | ||
180 | } |
|
181 | ||
182 | // Check command line input parameters |
|
183 | function check_activity_arguments() |
|
184 | { |
|
185 | // Filling the globals with input |
|
186 | global $arn; |
|
187 | global $logPath; |
|
188 | global $debug; |
|
189 | global $clientClassPath; |
|
190 | global $name; |
|
191 | ||
192 | // Handle input parameters |
|
193 | if (!($options = getopt("N:A:l:C:hd"))) |
|
194 | usage(); |
|
195 | ||
196 | if (isset($options['h'])) |
|
197 | usage(); |
|
198 | ||
199 | // Debug |
|
200 | if (isset($options['d'])) |
|
201 | $debug = true; |
|
202 | ||
203 | if (isset($options['A']) && $options['A']) { |
|
204 | $arn = $options['A']; |
|
205 | } else if (getenv('SNF_ACTIVITY_ARN')) { |
|
206 | $arn = getenv('SNF_ACTIVITY_ARN'); |
|
207 | } else { |
|
208 | echo "ERROR: You must provide the ARN of your activity (Sfn ARN). Use option [-A <ARN>] or environment variable: 'SNF_ACTIVITY_ARN'\n"; |
|
209 | usage(); |
|
210 | } |
|
211 | ||
212 | if (isset($options['C']) && $options['C']) { |
|
213 | $clientClassPath = $options['C']; |
|
214 | } |
|
215 | ||
216 | if (isset($options['N']) && $options['N']) { |
|
217 | $name = $options['N']; |
|
218 | } |
|
219 | ||
220 | if (isset($options['l'])) |
|
221 | $logPath = $options['l']; |
|
222 | } |
|
223 | ||
224 | ||
225 | /* |