Revision 31922f7e
b/ci/snf-ci | ||
---|---|---|
27 | 27 |
RUN_BURNIN_CMD, |
28 | 28 |
] |
29 | 29 |
|
30 |
USAGE = """usage: %%prog [options] command |
|
30 |
USAGE = """usage: %%prog [options] command[,command...]
|
|
31 | 31 |
|
32 | 32 |
command: |
33 | 33 |
* %s: Create the slave server |
... | ... | |
100 | 100 |
print msg |
101 | 101 |
return |
102 | 102 |
|
103 |
command = args[0] |
|
104 |
if command == ALL_CMDS: |
|
103 |
commands = args[0]
|
|
104 |
if commands == ALL_CMDS:
|
|
105 | 105 |
for cmd in AVAILABLE_COMMANDS: |
106 | 106 |
setattr(options, cmd, True) |
107 |
elif command not in AVAILABLE_COMMANDS: |
|
108 |
msg = "ERROR: Unknown command: %s" % command |
|
109 |
parser.print_help() |
|
110 |
|
|
111 |
print msg |
|
112 |
return |
|
107 |
|
|
113 | 108 |
else: |
114 |
setattr(options, command, True) |
|
109 |
commands = commands.split(",") |
|
110 |
for command in commands: |
|
111 |
if command not in AVAILABLE_COMMANDS: |
|
112 |
msg = "ERROR: Unknown command: %s" % command |
|
113 |
parser.print_help() |
|
114 |
|
|
115 |
print msg |
|
116 |
return |
|
117 |
else: |
|
118 |
setattr(options, command, True) |
|
115 | 119 |
|
116 | 120 |
synnefo_ci = SynnefoCI(config_file=options.config_file, |
117 | 121 |
build_id=options.build_id, |
Also available in: Unified diff