summaryrefslogtreecommitdiff
path: root/cmdline/cmdline_type_parser.h
Commit message (Collapse)AuthorAgeFilesLines
* Add support for generating --help messages from cmdline definitionAlex Light2020-07-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously our --help messages were always simply hard-coded text blocks. This makes it easy for them to get out-of-sync with the actual flags the programs take. To fix this teach the cmdline system how to generate these types of help text. Convert over `dalvikvm` which is one of the worst when it comes to usefulness of the -help text. ``` % dalvikvm -help dalvikvm: [options] class [argument ...] The following standard arguments are supported: -classpath {string value} -cp {string value} The classpath, separated by ':' -D{string value} [-D{string value}...] -verbose:{class|collector|compiler|deopt|gc|heap|interpreter|jdwp|jit|jni|monitor|oat|profiler|signals|simulator|startup|third-party-jni|threads|verifier|verifier-debug|image|systrace-locks|plugin|agents|dex} Switches for advanced logging. Multiple categories can be enabled separated by ','. Eg: -verbose:class,deopt -help -h Print this help text. -showversion -agentpath:{/path/to/libagent.so=options} [-agentpath:{/path/to/libagent.so=options}...] Load native agents. The following extended arguments are supported: -Xbootclasspath:{list separated by ':'} -Xcheck:jni -Xms{Memory with granularity of 1024 bytes} -Xmx{Memory with granularity of 1024 bytes} -Xss{Memory with granularity of 1 bytes} -Xint The following Dalvik arguments are supported: -Xzygote Start as zygote -Xjnitrace:{string value} ... ``` Test: dalvikvm -help Bug: 160933150 Change-Id: Id96bc8340b799636d322450cb95c88f814a77c35
* art: Refactor RuntimeOptions/ParsedOptionsIgor Murashkin2015-02-041-0/+76
Refactor the RuntimeOptions to be a type-safe map (VariantMap, see runtime_options.h) and the ParsedOptions to delegate the parsing to CmdlineParser (see cmdline/cmdline_parser.h). This is the start of a command line parsing refactor, and may include more in the future (dex2oat, patchoat, etc). For more details of the command line parsing generator usage see cmdline/README.md Change-Id: Ic67c6bca5e1f33bf2ec60e2e3ff8c366bab91563