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
18 CHECK: -no-object-timestamp
21 CHECK: -no-swiftmodule-timestamp
22 CHECK: -num-threads <threads>
23 CHECK: -object-prefix-map <prefix=remapped>
24 CHECK: -oso-prepend-path <path>
25 CHECK: -out <filename>
26 CHECK: {{-o <filename>}}
28 CHECK: -remarks-drop-without-debug
29 CHECK: -remarks-output-format <format>
30 CHECK: -remarks-prepend-path <path>
31 CHECK: -reproducer <mode>
37 CHECK: -use-reproducer <path>
41 HELP-NOT: -reverse-iterate
43 RUN: dsymutil --version 2>&1 | FileCheck --check-prefix=VERSION %s
44 VERSION: {{ version }}
46 RUN: not dsymutil 2>&1 | FileCheck --check-prefix=NOINPUT %s
47 NOINPUT: error: no input files specified
49 RUN: dsymutil -bogus -help 2>&1 | FileCheck --check-prefix=BOGUS %s
50 BOGUS: warning: ignoring unknown option: -bogus
52 RUN: not dsymutil --quiet --verbose 2>&1 | FileCheck --check-prefix=CONFLICT %s
53 CONFLICT: error: --quiet and --verbose cannot be specified together