diff options
author | Dan Liew <dan@su-root.co.uk> | 2019-04-09 08:30:43 +0000 |
---|---|---|
committer | Dan Liew <dan@su-root.co.uk> | 2019-04-09 08:30:43 +0000 |
commit | 75e6f6652f6b35852e64570a93312ab1e9480855 (patch) | |
tree | 4d663967300d1987553d4c76270600f21b8158c8 /lib/asan/scripts/asan_symbolize.py | |
parent | f1b68757be821742361fdfc595ce5baf3e477cc8 (diff) | |
download | compiler-rt-75e6f6652f6b35852e64570a93312ab1e9480855.tar.gz |
[asan_symbolize] Move argument parser epilog text into script doc comment.
Summary:
This will make it easier to expand on the documentation in the future
that avoids cluttering the code.
rdar://problem/49476995
Reviewers: kubamracek, yln, samsonov, dvyukov, vitalybuka
Subscribers: #sanitizers, llvm-commits
Tags: #llvm, #sanitizers
Differential Revision: https://reviews.llvm.org/D60398
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@357978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/scripts/asan_symbolize.py')
-rwxr-xr-x | lib/asan/scripts/asan_symbolize.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/asan/scripts/asan_symbolize.py b/lib/asan/scripts/asan_symbolize.py index 840e90128..c96fb380b 100755 --- a/lib/asan/scripts/asan_symbolize.py +++ b/lib/asan/scripts/asan_symbolize.py @@ -6,6 +6,10 @@ # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # #===------------------------------------------------------------------------===# +""" +Example of use: + asan_symbolize.py -c "$HOME/opt/cross/bin/arm-linux-gnueabi-" -s "$HOME/SymbolFiles" < asan.log +""" import argparse import bisect import getopt @@ -517,9 +521,7 @@ if __name__ == '__main__': parser = argparse.ArgumentParser( formatter_class=argparse.RawDescriptionHelpFormatter, description='ASan symbolization script', - epilog='Example of use:\n' - 'asan_symbolize.py -c "$HOME/opt/cross/bin/arm-linux-gnueabi-" ' - '-s "$HOME/SymbolFiles" < asan.log') + epilog=__doc__) parser.add_argument('path_to_cut', nargs='*', help='pattern to be cut from the result file path ') parser.add_argument('-d','--demangle', action='store_true', |