From 7b0ad0901a57c4f4161347dae92f09187597e724 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 7 Aug 2017 15:28:23 +0200 Subject: [PATCH] [enh] Show description of command in --help (#148) --- moulinette/interfaces/cli.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/moulinette/interfaces/cli.py b/moulinette/interfaces/cli.py index c74995a9..8ed96ced 100644 --- a/moulinette/interfaces/cli.py +++ b/moulinette/interfaces/cli.py @@ -267,7 +267,10 @@ class ActionsMapParser(BaseActionsMapParser): A new ActionsMapParser object for the category """ - parser = self._subparsers.add_parser(name, help=category_help, **kwargs) + parser = self._subparsers.add_parser(name, + description=category_help, + help=category_help, + **kwargs) return self.__class__(self, parser, { 'title': "subcommands", 'required': True }) @@ -284,6 +287,7 @@ class ActionsMapParser(BaseActionsMapParser): """ parser = self._subparsers.add_parser(name, type_="subcategory", + description=subcategory_help, help=subcategory_help, **kwargs) return self.__class__(self, parser, { @@ -306,6 +310,7 @@ class ActionsMapParser(BaseActionsMapParser): return self._subparsers.add_parser(name, type_="action", help=action_help, + description=action_help, deprecated=deprecated, deprecated_alias=deprecated_alias)