mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 14:27:42 -02:30
cli: add support for deprecated tower-cli aliases in py2
This commit is contained in:
@@ -170,9 +170,9 @@ class CLI(object):
|
||||
if formatted:
|
||||
print(utils.to_str(formatted), file=self.stdout)
|
||||
else:
|
||||
self.parser.print_help()
|
||||
|
||||
if six.PY2 and not self.help:
|
||||
if six.PY3:
|
||||
self.parser.print_help()
|
||||
elif six.PY2 and not self.help:
|
||||
# Unfortunately, argparse behavior between py2 and py3
|
||||
# changed in a notable way when required subparsers
|
||||
# have invalid (or missing) arguments specified
|
||||
|
||||
Reference in New Issue
Block a user