Skip to content

Commit

Permalink
nodenametoid: add -h option
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamilcuk committed Sep 2, 2024
1 parent 12ef75e commit 0371b0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nomad_tools/entry_nodenametoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import click

from .common import mynomad
from .common_click import completor
from .common_click import common_options, completor


def get_nodenametoid() -> Dict[str, str]:
Expand All @@ -29,6 +29,7 @@ def get_nodenametoid() -> Dict[str, str]:
required=True,
shell_complete=completor(lambda: list(get_nodenametoid().keys())),
)
@common_options()
def cli(prefix: bool, nodename: Tuple[str, ...]):
nodenametoid = get_nodenametoid()
for name in nodename:
Expand Down

0 comments on commit 0371b0b

Please sign in to comment.