Skip to content

Fix -h CLI option#126

Merged
k0kubun merged 1 commit into
ruby:masterfrom
ybiquitous:fix-short-help-cli-option
Jul 20, 2026
Merged

Fix -h CLI option#126
k0kubun merged 1 commit into
ruby:masterfrom
ybiquitous:fix-short-help-cli-option

Conversation

@ybiquitous

@ybiquitous ybiquitous commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Fixes the Unknown switch: "-h" error message when running erb -h:

$ libexec/erb -h 2>&1 | head -3
Unknown switch: "-h"
Usage:
  erb [options] [filepaths]

The short -h option is already documented in the help message:

$ libexec/erb --help 2>&1 | grep 'help'
  -h          --help       Print this text and exit.

Fixes the `Unknown switch: "-h"` error message when running `erb -h`:

```sh-session
$ libexec/erb -h 2>&1 | head -3
Unknown switch: "-h"
Usage:
  erb [options] [filepaths]
```

The short `-h` option is already documented in the help message:

```sh-session
$ libexec/erb --help 2>&1 | grep 'help'
  -h          --help       Print this text and exit.
```
@ybiquitous
ybiquitous force-pushed the fix-short-help-cli-option branch from 8be7920 to f3af39b Compare July 19, 2026 14:39
@k0kubun
k0kubun merged commit 0f9a6d6 into ruby:master Jul 20, 2026
9 checks passed
matzbot pushed a commit to ruby/ruby that referenced this pull request Jul 20, 2026
(ruby/erb#126)

Fixes the `Unknown switch: "-h"` error message when running `erb -h`:

```sh-session
$ libexec/erb -h 2>&1 | head -3
Unknown switch: "-h"
Usage:
  erb [options] [filepaths]
```

The short `-h` option is already documented in the help message:

```sh-session
$ libexec/erb --help 2>&1 | grep 'help'
  -h          --help       Print this text and exit.
```

ruby/erb@0f9a6d6a7a
@ybiquitous
ybiquitous deleted the fix-short-help-cli-option branch July 20, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants