Merge "print usage when no argument is specified for python3"

This commit is contained in:
Jenkins
2015-10-05 22:25:25 +00:00
committed by Gerrit Code Review

View File

@@ -711,8 +711,8 @@ class OpenStackHelpFormatter(argparse.HelpFormatter):
def main():
try:
OpenStackSaharaShell().main(map(encodeutils.safe_decode,
sys.argv[1:]))
argv = [encodeutils.safe_decode(a) for a in sys.argv[1:]]
OpenStackSaharaShell().main(argv)
except Exception as e:
logger.debug(e, exc_info=1)