RUN: dsymutil -help 2>&1 | FileCheck --check-prefix=CHECK --check-prefix=HELP %s
RUN: cat %S/../../../docs/CommandGuide/dsymutil.rst | FileCheck %s
HELP: OVERVIEW: manipulate archived DWARF debug symbol files.
HELP: USAGE: {{.*}}dsymutil{{[^ ]*}} [options]
HELP-NOT: -reverse-iterate
HELP: Dsymutil Options:
CHECK: -accelerator
CHECK: -allow
CHECK: -arch
CHECK: -build-variant-suffix
CHECK: -codesign
CHECK: -disallow
CHECK: -dump-debug-map
CHECK: -D
CHECK: -embed-resource =
CHECK: -fat64
CHECK: -flat
CHECK: -gen-reproducer
CHECK: -help
CHECK: -include-swiftmodules-from-interface
CHECK: -keep-function-for-static
CHECK: -no-object-timestamp
CHECK: -no-odr
CHECK: -no-output
CHECK: -no-swiftmodule-timestamp
CHECK: -num-threads
CHECK: -object-prefix-map
CHECK: -oso-prepend-path
CHECK: -out
CHECK: {{-o }}
CHECK: -quiet
CHECK: -remarks-drop-without-debug
CHECK: -remarks-output-format
CHECK: -remarks-prepend-path
CHECK: -reproducer
CHECK: -statistics
CHECK: -symtab
CHECK: {{-S}}
CHECK: -toolchain
CHECK: -update
CHECK: -use-reproducer
CHECK: -verbose
CHECK: -verify
CHECK: {{-y}}
HELP-NOT: -reverse-iterate
RUN: dsymutil --version 2>&1 | FileCheck --check-prefix=VERSION %s
VERSION: {{ version }}
RUN: not dsymutil 2>&1 | FileCheck --check-prefix=NOINPUT %s
NOINPUT: error: no input files specified
RUN: dsymutil -bogus -help 2>&1 | FileCheck --check-prefix=BOGUS %s
BOGUS: warning: ignoring unknown option: -bogus
RUN: not dsymutil --quiet --verbose 2>&1 | FileCheck --check-prefix=CONFLICT %s
CONFLICT: error: --quiet and --verbose cannot be specified together
RUN: not dsymutil -y file1 --allow file2 2>&1 | FileCheck --check-prefix=CONFLICT2 %s
CONFLICT2: error: -y and --allow/--disallow cannot be specified together
RUN: not dsymutil --flat --embed-resource /tmp/a.py=Python/a.py file1 2>&1 | FileCheck --check-prefix=FLATEMBED %s
FLATEMBED: error: --embed-resource is not supported with --flat