diff mbox

[U-Boot] patman: refactor help message

Message ID 1408598883-20357-1-git-send-email-yamada.m@jp.panasonic.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Masahiro Yamada Aug. 21, 2014, 5:28 a.m. UTC
"patman [options]" is displayed by default.

Append the rest of help messages to parser.usage
instead of replacing it.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---

 tools/patman/patman.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Simon Glass Aug. 23, 2014, 2 a.m. UTC | #1
On 20 August 2014 23:28, Masahiro Yamada <yamada.m@jp.panasonic.com> wrote:
> "patman [options]" is displayed by default.
>
> Append the rest of help messages to parser.usage
> instead of replacing it.
>
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>

Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Tom Rini Aug. 23, 2014, 12:43 p.m. UTC | #2
On Thu, Aug 21, 2014 at 02:28:03PM +0900, Masahiro Yamada wrote:

> "patman [options]" is displayed by default.
> 
> Append the rest of help messages to parser.usage
> instead of replacing it.
> 
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/tools/patman/patman.py b/tools/patman/patman.py
index ba5dc91..ca34cb9 100755
--- a/tools/patman/patman.py
+++ b/tools/patman/patman.py
@@ -58,7 +58,7 @@  parser.add_option('--no-check', action='store_false', dest='check_patch',
 parser.add_option('--no-tags', action='store_false', dest='process_tags',
                   default=True, help="Don't process subject tags as aliaes")
 
-parser.usage = """patman [options]
+parser.usage += """
 
 Create patches from commits in a branch, check them and email them as
 specified by tags you place in the commits. Use -n to do a dry run first."""