diff options
author | José Fonseca <jfonseca@vmware.com> | 2013-10-18 17:15:17 -0700 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2013-10-18 17:15:17 -0700 |
commit | 155380f63bdfd3913d2c719bf44acaee174d32c6 (patch) | |
tree | ce616d2ac9e05c66874f5d213a08d2ec83f7a52c /scripts | |
parent | 90794abcd6f0c7781347efd2a956b9d43d4268fe (diff) |
tracediff: Rename --diff=TOOL option to --tool=TOOL.
More intuitive (I was always mistyping it) as it matches valgrind.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tracediff.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/tracediff.py b/scripts/tracediff.py index 09135101..1dd2d488 100755 --- a/scripts/tracediff.py +++ b/scripts/tracediff.py @@ -481,10 +481,10 @@ def main(): type='string', dest='apitrace', default='apitrace', help='apitrace command [default: %default]') optparser.add_option( - '-d', '--diff', metavar='TOOL', + '-t', '--tool', metavar='TOOL', type="choice", choices=('diff', 'sdiff', 'wdiff', 'python'), - dest="diff", default=None, - help="diff program: diff, sdiff, wdiff, or python [default: auto]") + dest="tool", default=None, + help="diff tool: diff, sdiff, wdiff, or python [default: auto]") optparser.add_option( '-c', '--calls', metavar='CALLSET', type="string", dest="calls", default='0-10000', @@ -511,19 +511,19 @@ def main(): if len(args) != 2: optparser.error("incorrect number of arguments") - if options.diff is None: + if options.tool is None: if platform.system() == 'Windows': - options.diff = 'python' + options.tool = 'python' else: if which('wdiff'): - options.diff = 'wdiff' + options.tool = 'wdiff' else: sys.stderr.write('warning: wdiff not found\n') if which('sdiff'): - options.diff = 'sdiff' + options.tool = 'sdiff' else: sys.stderr.write('warning: sdiff not found\n') - options.diff = 'diff' + options.tool = 'diff' if options.ref_calls is None: options.ref_calls = options.calls @@ -532,10 +532,10 @@ def main(): ref_trace, src_trace = args - if options.diff == 'python': + if options.tool == 'python': differ = PythonDiffer(options.apitrace, options.call_nos) else: - differ = ExternalDiffer(options.apitrace, options.diff, options.width) + differ = ExternalDiffer(options.apitrace, options.tool, options.width) differ.setRefTrace(ref_trace, options.ref_calls) differ.setSrcTrace(src_trace, options.src_calls) differ.diff() |