Skip to content
Snippets Groups Projects
Unverified Commit 1568f92d authored by Andrej Shadura's avatar Andrej Shadura
Browse files

fixup! Emulate get_cmd_help missing from osc 1.x

parent 19ef5b00
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ def do_dput(self, subcmd, opts, *args):
# osc 1.x removes get_cmd_help, inject a replacement
if not hasattr(self, "get_cmd_help"):
import argparse
def format_help(subcmd, opts=None, *args):
for action in self.argparser._actions:
if not isinstance(action, argparse._SubParsersAction):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment