diff options
author | Lee Jarvis <ljjarvis@gmail.com> | 2013-08-29 15:51:03 +0100 |
---|---|---|
committer | Lee Jarvis <ljjarvis@gmail.com> | 2013-08-29 15:51:03 +0100 |
commit | 216444073b3fb796de016bb8624c594316e1e587 (patch) | |
tree | e9b06267dababc3d67988957da5887af3e5bb143 /README.md | |
parent | e9829e9da502ef5edf531dfa33c2677082e2d068 (diff) | |
download | slop-216444073b3fb796de016bb8624c594316e1e587.tar.gz |
Use a table to show config options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 22 |
1 files changed, 6 insertions, 16 deletions
@@ -68,22 +68,12 @@ can see this by calling `opts.help` or simply `puts opts`. Configuration Options --------------------- -All of these options can be sent to `Slop.new` or `Slop.parse` in Hash form. - -* `strict` - Enable strict mode. When processing unknown options, Slop will - raise an `InvalidOptionError`. **default:** *false*. -* `help` - Automatically add the `--help` option. **default:** *false*. -* `banner` - Set the help banner text. **default:** *nil*. -* `ignore_case` - When enabled, `-A` will look for the `-a` option if `-A` - does not exist. **default:** *false*. -* `autocreate` - Autocreate options on the fly. **default:** *false*. -* `arguments` - Force all options to expect arguments. **default:** *false*. -* `optional_arguments` - Force all options to accept optional arguments. - **default:** *false*. -* `multiple_switches` - When disabled, Slop will parse `-abc` as the option `a` - with the argument `bc` rather than 3 separate options. **default:** *true*. -* `longest_flag` - The longest string flag, used to aid configuring help - text. **default:** *0*. +Key | Description | Default +--------------------|---------------------------------------------------------------------- +`strict` | Raise `InvalidOptionError` for unknown options | true +`help` | Automatically add the `--help` option | true +`ignore_case` | `-A` will be processed the same as `-a` | false +`multiple_switches` | When disabled, parses `-abc` as `-a` with the argument `bc` | true Lists ----- |