Skip to contentSkip to conversation

buildman: refactor help message

PATCH Superseded Masahiro Yamada 3 participants 4 messages Aug 21, 2014 – Aug 23, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buildman: refactor help message

"buildman [options]" is displayed by default.

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

---

 tools/buildman/buildman.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/buildman/buildman.py +1 -1
index 6ca8dc6..9b0c9a0 100755
@@ -118,7 +118,7 @@ parser.add_option('-u', '--show_unknown', action='store_true',
 parser.add_option('-v', '--verbose', action='store_true',
        default=False, help='Show build results while the build progresses')
 
-parser.usage = """buildman -b <branch> [options]
+parser.usage += """ -b <branch>
 
 Build U-Boot for all commits in a branch. Use -n to do a dry run"""
 
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 buildman: refactor help message (This has been superseded !)

Hi Tom,

I notice this patch is already marked as Under Review and I guess you are testing it locally now.

If it is not too late, could you replace it with v2 please?
http://patchwork.ozlabs.org/patch/382136/

I found "-b <branch>" is not a mandatory option.

Best Regards
Masahiro Yamada

Quoted 26 lines · On Thu, 21 Aug 2014 14:28:19 +0900 Masahiro Yamada <[email protected]>…

"buildman [options]" is displayed by default.

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

---

 tools/buildman/buildman.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/buildman/buildman.py +1 -1
index 6ca8dc6..9b0c9a0 100755
@@ -118,7 +118,7 @@ parser.add_option('-u', '--show_unknown', action='store_true',
 parser.add_option('-v', '--verbose', action='store_true',
        default=False, help='Show build results while the build progresses')
 
-parser.usage = """buildman -b <branch> [options]
+parser.usage += """ -b <branch>
 
 Build U-Boot for all commits in a branch. Use -n to do a dry run"""
 
Signature · 1 line
1.9.1
#2 lore raw

PATCH 1/1 buildman: refactor help message (This has been superseded !)

Quoted 8 lines · Masahiro Yamada

Hi Tom,

I notice this patch is already marked as Under Review and I guess you are testing it locally now.

If it is not too late, could you replace it with v2 please?
http://patchwork.ozlabs.org/patch/382136/

Will do, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140822/885ab26e/attachment.pgp>
#3 lore raw

PATCH 1/1 buildman: refactor help message

In reply to Masahiro Yamada

Hi Masahiro,

Quoted 16 lines · Masahiro Yamada

"buildman [options]" is displayed by default.

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

---

 tools/buildman/buildman.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/buildman/buildman.py +0 -0
index 6ca8dc6..9b0c9a0 100755

tools/buildman/buildman.py parser.add_option('-u', '--show_unknown', action='store_true', · line 121

Quoted 5 lines
tools/buildman/buildman.py +1 -1
@@ -118,7 +118,7 @@ parser.add_option('-u', '--show_unknown', action='store_true',
 parser.add_option('-v', '--verbose', action='store_true',
        default=False, help='Show build results while the build progresses')
 
-parser.usage = """buildman -b <branch> [options]
+parser.usage += """ -b <branch>

Actually, it's my mistake but the -b argument is now optional. So perhaps it could be:

tools/buildman/buildman.py parser.add_option('-u', '--show_unknown', action='store_true', · line 122

Quoted 1 line
tools/buildman/buildman.py +1 -0
+parser.usage += """ [-b <branch>]

Regards,
Simon