Commit aed86dbd authored by Michael Völske's avatar Michael Völske

maintain subcommand ordering in ShellWrapperCommands

parent d2fa21b5
......@@ -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 = ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment