Public bug reported: If I add --help to the end of an enable command, I get a stack trace:
``` ubuntu@pro1604:~$ sudo ua enable fips --help ERROR:root:Unhandled exception, please file a bug Traceback (most recent call last): File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 937, in wrapper return func(*args, **kwargs) File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 987, in main args = parser.parse_args(args=cli_arguments) File "/usr/lib/python3.5/argparse.py", line 1735, in parse_args args, argv = self.parse_known_args(args, namespace) File "/usr/lib/python3.5/argparse.py", line 1767, in parse_known_args namespace, args = self._parse_known_args(args, namespace) File "/usr/lib/python3.5/argparse.py", line 1955, in _parse_known_args positionals_end_index = consume_positionals(start_index) File "/usr/lib/python3.5/argparse.py", line 1932, in consume_positionals take_action(action, args) File "/usr/lib/python3.5/argparse.py", line 1841, in take_action action(self, namespace, argument_values, option_string) File "/usr/lib/python3.5/argparse.py", line 1138, in __call__ subnamespace, arg_strings = parser.parse_known_args(arg_strings, None) File "/usr/lib/python3.5/argparse.py", line 1767, in parse_known_args namespace, args = self._parse_known_args(args, namespace) File "/usr/lib/python3.5/argparse.py", line 1973, in _parse_known_args start_index = consume_optional(start_index) File "/usr/lib/python3.5/argparse.py", line 1913, in consume_optional take_action(action, args, option_string) File "/usr/lib/python3.5/argparse.py", line 1841, in take_action action(self, namespace, argument_values, option_string) File "/usr/lib/python3.5/argparse.py", line 1025, in __call__ parser.print_help() File "/usr/lib/python3/dist-packages/uaclient/cli.py", line 93, in print_help super().print_help(file=file) File "/usr/lib/python3.5/argparse.py", line 2367, in print_help self._print_message(self.format_help(), file) File "/usr/lib/python3.5/argparse.py", line 2351, in format_help return formatter.format_help() File "/usr/lib/python3.5/argparse.py", line 287, in format_help help = self._root_section.format_help() File "/usr/lib/python3.5/argparse.py", line 217, in format_help func(*args) File "/usr/lib/python3.5/argparse.py", line 217, in format_help func(*args) File "/usr/lib/python3.5/argparse.py", line 524, in _format_action help_text = self._expand_help(action) File "/usr/lib/python3.5/argparse.py", line 611, in _expand_help return self._get_help_string(action) % params TypeError: unsupported operand type(s) for %: 'tuple' and 'dict' Unexpected error(s) occurred. For more details, see the log: /var/log/ubuntu-advantage.log To file a bug run: ubuntu-bug ubuntu-advantage-tools ``` ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: ubuntu-advantage-tools 26.3~16.04.1 ProcVersionSignature: User Name 4.15.0-1113.126~16.04.1-azure 4.15.18 Uname: Linux 4.15.0-1113-azure x86_64 ApportVersion: 2.20.1-0ubuntu2.30 Architecture: amd64 Date: Wed Jun 9 21:14:41 2021 ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: ubuntu-advantage-tools UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: ubuntu-advantage-tools (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug third-party-packages uec-images xenial -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1931501 Title: Stack trace when --help flag added to the end of a command To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1931501/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs