From 47128126b01af32119cedc588f1b19f46a870328 Mon Sep 17 00:00:00 2001 From: Mahnoor Asghar Date: Sun, 31 Oct 2021 17:06:34 +0500 Subject: Made `baremetal --help` display command specific help. `baremental node show --help` shows the same command-specific help message as: `baremetal help node show` Story: 2009265 Task: 43500 Change-Id: Id79a88a1df0e641d951e46433ad9961376241cc2 --- ironicclient/shell.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ironicclient/shell.py b/ironicclient/shell.py index 0edc585..22bf3a3 100644 --- a/ironicclient/shell.py +++ b/ironicclient/shell.py @@ -137,7 +137,8 @@ class App(app.App): self.config = os_config.OpenStackConfig(override_defaults=_DEFAULTS) super(App, self).__init__(description=_DESCRIPTION, version=str(version_info), - command_manager=mgr) + command_manager=mgr, + deferred_help=True) def build_option_parser(self, description, version, argparse_kwargs=None): parser = super(App, self).build_option_parser( -- cgit v1.2.1