| 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] <input files> |
| HELP-NOT: -reverse-iterate |
| CHECK: -keep-function-for-static |
| CHECK: -no-swiftmodule-timestamp |
| CHECK: -num-threads <threads> |
| CHECK: -object-prefix-map <prefix=remapped> |
| CHECK: -oso-prepend-path <path> |
| CHECK: -remarks-output-format <format> |
| CHECK: -remarks-prepend-path <path> |
| CHECK: -use-reproducer <path> |
| HELP-NOT: -reverse-iterate |
| RUN: dsymutil --version 2>&1 | FileCheck --check-prefix=VERSION %s |
| 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 |