Skip to content

Commit

Permalink
Expose ROSProcess CLI argument parser
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <[email protected]>
  • Loading branch information
mhidalgo-bdai committed Oct 18, 2024
1 parent 68f29e8 commit 9d9c5b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bdai_ros2_wrappers/bdai_ros2_wrappers/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ def __init__(
self._lock = threading.Lock()
functools.update_wrapper(self, self._func)

@property
def cli(self) -> typing.Optional[argparse.ArgumentParser]:
"""Get the associated CLI argument parser, if any."""
return self._cli

def __getattr__(self, name: str) -> typing.Any:
"""Gets missing attributes from the underlying scope.
Expand Down

0 comments on commit 9d9c5b8

Please sign in to comment.