Commit 853d56f
committed
Improve handling of ri's --help and --version options
Explicitly handle ri's --help and --version options instead of
relying on OptionParser's default behavior. This makes both options
appear in the ri --help text.
This also fixes `ri -h' which did not work as expected: instead of
displaying the help text, ri entered the interactive mode, apparently
ignoring the option.1 parent 5a969a9 commit 853d56f
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
245 | 261 | | |
246 | 262 | | |
247 | 263 | | |
| |||
0 commit comments