1 RUN: dsymutil -help 2>&1 | FileCheck --check-prefix=CHECK --check-prefix=HELP %s
2 RUN: cat %S/../../../docs/CommandGuide/dsymutil.rst | FileCheck %s
4 HELP: OVERVIEW: manipulate archived DWARF debug symbol files.
5 HELP: USAGE: {{.*}}dsymutil{{[^ ]*}} [options] <input files>
6 HELP-NOT: -reverse-iterate
7 HELP: Dsymutil Options:
10 CHECK: -build-variant-suffix <suffix=buildvariant>
11 CHECK: -dump-debug-map
15 CHECK: -gen-reproducer
17 CHECK: -keep-function-for-static
20 CHECK: -no-swiftmodule-timestamp
21 CHECK: -num-threads <threads>
22 CHECK: -object-prefix-map <prefix=remapped>
23 CHECK: -oso-prepend-path <path>
24 CHECK: -out <filename>
25 CHECK: {{-o <filename>}}
26 CHECK: -remarks-drop-without-debug
27 CHECK: -remarks-output-format <format>
28 CHECK: -remarks-prepend-path <path>
29 CHECK: -reproducer <mode>
36 CHECK: -use-reproducer <path>
40 HELP-NOT: -reverse-iterate
42 RUN: dsymutil --version 2>&1 | FileCheck --check-prefix=VERSION %s
43 VERSION: {{ version }}
45 RUN: not dsymutil 2>&1 | FileCheck --check-prefix=NOINPUT %s
46 NOINPUT: error: no input files specified
48 RUN: dsymutil -bogus -help 2>&1 | FileCheck --check-prefix=BOGUS %s
49 BOGUS: warning: ignoring unknown option: -bogus