[PATCH] Don't check for the config file if the user is asking for help

Mathieu Bridon bochecha at fedoraproject.org
Thu Feb 20 09:17:46 UTC 2014


We already do that for the other 2 ways of asking for help ('-h' and
'--help'), so we should do that for 'help' as well.
---
 src/fedpkg/__main__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fedpkg/__main__.py b/src/fedpkg/__main__.py
index bd95653..c64f61e 100644
--- a/src/fedpkg/__main__.py
+++ b/src/fedpkg/__main__.py
@@ -29,7 +29,7 @@ def main():
     (args, other) = parser.parse_known_args()
 
     # Make sure we have a sane config file
-    if not os.path.exists(args.config) and not other[-1] in ['--help', '-h']:
+    if not os.path.exists(args.config) and not other[-1] in ['--help', '-h', 'help']:
         sys.stderr.write('Invalid config file %s\n' % args.config)
         sys.exit(1)
 
-- 
1.8.5.3



More information about the rel-eng mailing list