Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
code-generic
code-webis-cmd
Commits
aed86dbd
Commit
aed86dbd
authored
Sep 28, 2020
by
Michael Völske
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maintain subcommand ordering in ShellWrapperCommands
parent
d2fa21b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
libs/lib.py
libs/lib.py
+2
-1
No files found.
libs/lib.py
View file @
aed86dbd
...
...
@@ -41,9 +41,10 @@ class ShellWrapperCommand(click.MultiCommand):
If available, help and subcommand information are parsed from the script.
"""
def
__init__
(
self
,
name
,
file
):
from
collections
import
OrderedDict
super
().
__init__
(
name
,
True
,
False
)
self
.
file
=
file
self
.
commands
=
{}
self
.
commands
=
OrderedDict
()
self
.
_parse_script_contents
()
if
not
self
.
commands
:
self
.
subcommand_metavar
=
""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment