Skip to content

Commit

Permalink
[General] Minor wording and formatting changes to usage message
Browse files Browse the repository at this point in the history
Update usage message in README
  • Loading branch information
leptos-null committed Aug 28, 2024
1 parent 5a2d912 commit 0543cee
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 9 deletions.
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ Options:
the specified directory, otherwise all classes found
are written to this directory at the top level
-m <m>, --color=<m> Set color settings, one of the below
default: color output only if output is to a TTY
default: color output using ASNI color escapes only if output is to a TTY
never: no output is colored
always: output to TTYs, pipes, and files are colored
always: color output to files, pipes, and TTYs using ASNI color escapes
html-hljs: output in HTML format annotated with hljs classes
html-lsp: output in HTML format annotated with LSP classes
-i <p>, --image=<p> Reference the mach-o image at path
by default, dump all classes in this image
otherwise may specify --class or --protocol
Expand All @@ -47,4 +49,22 @@ Options:
-j <N>, --jobs=<N> Allow N jobs at once
only applicable when specified with -a/--dyld_shared_cache
(defaults to number of processing core available)
--strip-protocol-conformance[=flag] Hide properties and methods that are required
by a protocol the type conforms to
(defaults to false)
--strip-overrides[=flag] Hide properties and methods that are inherited
from the class hierachy
(defaults to false)
--strip-duplicates[=flag] Hide duplicate occurrences of a property or method
(defaults to false)
--strip-synthesized[=flag] Hide methods and ivars that are synthesized from a property
(defaults to true)
--strip-ctor-method[=flag] Hide `.cxx_construct` method
(defaults to false)
--strip-dtor-method[=flag] Hide `.cxx_destruct` method
(defaults to false)
--add-symbol-comments[=flag] Add comments above each eligible declaration
with the symbol name and image path the object is found in
(defaults to false)
```
14 changes: 7 additions & 7 deletions Sources/classdumpctl/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ static void printUsage(const char *progname) {
" -m <m>, --color=<m> Set color settings, one of the below\n"
" default: color output using ASNI color escapes only if output is to a TTY\n"
" never: no output is colored\n"
" always: output to TTYs, pipes, and files are colored using ASNI color escapes\n"
" html-hljs: output to TTYs, pipes, and files are in HTML format annotated with hljs classes\n"
" html-lsp: output to TTYs, pipes, and files are in HTML format annotated with LSP classes\n"
" always: color output to files, pipes, and TTYs using ASNI color escapes\n"
" html-hljs: output in HTML format annotated with hljs classes\n"
" html-lsp: output in HTML format annotated with LSP classes\n"
" -i <p>, --image=<p> Reference the mach-o image at path\n"
" by default, dump all classes in this image\n"
" otherwise may specify --class or --protocol\n"
Expand All @@ -64,11 +64,11 @@ static void printUsage(const char *progname) {
" only applicable when specified with -a/--dyld_shared_cache\n"
" (defaults to number of processing core available)\n"
"\n"
" --strip-protocol-conformance[=flag] Hide properties and methods\n"
" that are required by a protocol the type conforms to\n"
" --strip-protocol-conformance[=flag] Hide properties and methods that are required\n"
" by a protocol the type conforms to\n"
" (defaults to false)\n"
" --strip-overrides[=flag] Hide properties and methods\n"
" that are inherited from the class hierachy\n"
" --strip-overrides[=flag] Hide properties and methods that are inherited\n"
" from the class hierachy\n"
" (defaults to false)\n"
" --strip-duplicates[=flag] Hide duplicate occurrences of a property or method\n"
" (defaults to false)\n"
Expand Down

0 comments on commit 0543cee

Please sign in to comment.