Skip to content

Commit

Permalink
[feat] Add available modules in the launch command descr
Browse files Browse the repository at this point in the history
  • Loading branch information
tamohannes committed Jul 2, 2024
1 parent 129f740 commit 1ae1dde
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion urartu/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.14
2.0.15
2 changes: 1 addition & 1 deletion urartu/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

from .command import Command

from .launch import Launch
from .register import Register
from .unregister import Unregister
from .launch import Launch


def parse_args() -> Tuple[argparse.ArgumentParser, argparse.Namespace]:
Expand Down
3 changes: 2 additions & 1 deletion urartu/commands/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ class Launch(Command):

def add_subparser(self, parser: argparse._SubParsersAction) -> argparse.ArgumentParser:
description = """urartu: launcher"""
available_modules = ", ".join(Registry.load_file_content().keys())
subparser = parser.add_parser(
self.name,
description=description,
help="Launch an action from a given module",
help=f"Launch an action from a given module: {available_modules}",
)

subparser.add_argument("--name", type=str, help="name of the project/module")
Expand Down

0 comments on commit 1ae1dde

Please sign in to comment.