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

fixup! Emulate get_cmd_help missing from osc 1.x

parent fa647f85
Branches
Tags
No related merge requests found
...@@ -38,6 +38,7 @@ def do_dput(self, subcmd, opts, *args): ...@@ -38,6 +38,7 @@ def do_dput(self, subcmd, opts, *args):
# osc 1.x removes get_cmd_help, inject a replacement # osc 1.x removes get_cmd_help, inject a replacement
if not hasattr(self, "get_cmd_help"): if not hasattr(self, "get_cmd_help"):
import argparse import argparse
def format_help(subcmd, opts=None, *args): def format_help(subcmd, opts=None, *args):
for action in self.argparser._actions: for action in self.argparser._actions:
if not isinstance(action, argparse._SubParsersAction): 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