Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Unified Diff: pydir/crosstest.py

Issue 565553002: Subzero: Print defaults as appropriate in python script help text. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pydir/build-pnacl-ir.py ('k') | pydir/szbuild.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pydir/crosstest.py
diff --git a/pydir/crosstest.py b/pydir/crosstest.py
index 54010c52e25b6fd7e008737d71309e69a55c9c6e..b4146c19578f0c1a4dc1f318e6145e6f444f8611 100755
--- a/pydir/crosstest.py
+++ b/pydir/crosstest.py
@@ -37,15 +37,18 @@ if __name__ == '__main__':
argparser.add_argument('--target', required=False, default='x8632',
choices=arch_map.keys(),
metavar='TARGET',
- help='Translation target architecture')
+ help='Translation target architecture.' +
+ ' Default %(default)s.')
argparser.add_argument('-O', required=False, default='2', dest='optlevel',
choices=['m1', '-1', '0', '1', '2'],
metavar='OPTLEVEL',
help='Optimization level ' +
- '(m1 and -1 are equivalent)')
+ '(m1 and -1 are equivalent).' +
+ ' Default %(default)s.')
argparser.add_argument('--mattr', required=False, default='sse2',
dest='attr', choices=['sse2', 'sse4.1'],
- metavar='ATTRIBUTE', help='Target attribute')
+ metavar='ATTRIBUTE',
+ help='Target attribute. Default %(default)s.')
argparser.add_argument('--prefix', required=True,
metavar='SZ_PREFIX',
help='String prepended to Subzero symbol names')
@@ -54,12 +57,14 @@ if __name__ == '__main__':
help='Executable to produce')
argparser.add_argument('--dir', required=False, default='.',
metavar='OUTPUT_DIR',
- help='Output directory for all files')
+ help='Output directory for all files.' +
+ ' Default "%(default)s".')
argparser.add_argument('--crosstest-bitcode', required=False,
default=1, type=int,
help='Compile non-subzero crosstest object file ' +
'from the same bitcode as the subzero object. ' +
- 'If 0, then compile it straight from source.')
+ 'If 0, then compile it straight from source.' +
+ ' Default %(default)d.')
args = argparser.parse_args()
nacl_root = FindBaseNaCl()
« no previous file with comments | « pydir/build-pnacl-ir.py ('k') | pydir/szbuild.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698