[PATCH] Fix arg parsing for func-command and func-down-hosts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 scripts/func-command    |    2 +-
 scripts/func-down-hosts |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/func-command b/scripts/func-command
index 32f9b46..4d1d522 100755
--- a/scripts/func-command
+++ b/scripts/func-command
@@ -13,7 +13,7 @@ def main(args):
     parser = base_func_parser(outputpath=False)
     parser.add_option('--returncodes', action='store_true', help="prefix each line with the commands returncode")
     parser.add_option('--oneline', action='store_true', help="output all things as one line - to make grepping easier, will not remove \n's from output of commands, though")
-    opts, args, parser = parse_args(args)
+    opts, args = parser.parse_args(args)
     opts = handle_base_func_options(parser, opts)
 
     if len(args) < 1:
diff --git a/scripts/func-down-hosts b/scripts/func-down-hosts
index 8ee08a9..3f6b60a 100755
--- a/scripts/func-down-hosts
+++ b/scripts/func-down-hosts
@@ -10,7 +10,7 @@ from func.utils import is_error
 
 def main(args):
     parser = base_func_parser(outputpath=False, timeoutdef=10)
-    opts, args, parser = parse_args(args)
+    opts, args = parser.parse_args(args)
     opts = handle_base_func_options(parser, opts)
 
 
-- 
1.7.3.2

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Intaxication (n.) Euphoria at getting a tax refund, which lasts until
you realize it was your money to start with.

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list


[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux