2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-25 12:41:39 +00:00

Accept '-f' as alias for '-c'

In xCAT, '-f' meant 'fanout' and it's harmless for us to support
both.
This commit is contained in:
Jarrod Johnson 2018-01-24 09:26:18 -05:00
parent 19e733f325
commit d04f6cc858
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ def run():
usage="Usage: %prog noderange commandexpression",
epilog="Expressions are the same as in attributes, e.g. "
"'ipmitool -H {hardwaremanagement.manager}' will be expanded.")
argparser.add_option('-c', '--count', type='int', default=168,
argparser.add_option('-f', '-c', '--count', type='int', default=168,
help='Number of commands to run at a time')
# among other things, FD_SETSIZE limits. Besides, spawning too many
# processes can be unkind for the unaware on memory pressure and such...

View File

@ -42,7 +42,7 @@ def run():
usage="Usage: %prog noderange commandexpression",
epilog="Expressions are the same as in attributes, e.g. "
"'ipmitool -H {hardwaremanagement.manager}' will be expanded.")
argparser.add_option('-c', '--count', type='int', default=168,
argparser.add_option('-f', '-c', '--count', type='int', default=168,
help='Number of commands to run at a time')
# among other things, FD_SETSIZE limits. Besides, spawning too many
# processes can be unkind for the unaware on memory pressure and such...