From d04f6cc8586af2a5c9e9b22516e1531e894d7928 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 24 Jan 2018 09:26:18 -0500 Subject: [PATCH] Accept '-f' as alias for '-c' In xCAT, '-f' meant 'fanout' and it's harmless for us to support both. --- confluent_client/bin/noderun | 2 +- confluent_client/bin/nodeshell | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_client/bin/noderun b/confluent_client/bin/noderun index d7dcb242..a250cef6 100755 --- a/confluent_client/bin/noderun +++ b/confluent_client/bin/noderun @@ -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... diff --git a/confluent_client/bin/nodeshell b/confluent_client/bin/nodeshell index 02e7b66e..6db57f6a 100755 --- a/confluent_client/bin/nodeshell +++ b/confluent_client/bin/nodeshell @@ -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...