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: -dump-debug-map
13 CHECK: -gen-reproducer
15 CHECK: -keep-function-for-static
18 CHECK: -no-swiftmodule-timestamp
19 CHECK: -num-threads <threads>
20 CHECK: -object-prefix-map <prefix=remapped>
21 CHECK: -oso-prepend-path <path>
22 CHECK: -out <filename>
23 CHECK: {{-o <filename>}}
25 CHECK: -remarks-drop-without-debug
26 CHECK: -remarks-output-format <format>
27 CHECK: -remarks-prepend-path <path>
28 CHECK: -reproducer <mode>
35 CHECK: -use-reproducer <path>
39 HELP-NOT: -reverse-iterate
41 RUN: dsymutil --version 2>&1 | FileCheck --check-prefix=VERSION %s
42 VERSION: {{ version }}
44 RUN: not dsymutil 2>&1 | FileCheck --check-prefix=NOINPUT %s
45 NOINPUT: error: no input files specified
47 RUN: dsymutil -bogus -help 2>&1 | FileCheck --check-prefix=BOGUS %s
48 BOGUS: warning: ignoring unknown option: -bogus