Skip to content

Run-time options aliases should not be used #420

Open
@gotqn

Description

@gotqn

In the following documentation http://rubydoc.info/github/wycats/thor/master/Thor under class_option section about :aliases is said that:

Note: Thor follows a convention of one-dash-one-letter options. Thus aliases like “-something” wouldn't be parsed; use either “--something” or “-s” instead.

But actually, if you use -s as alias it wont work because you already have such alias defined for Thor run-time options:

Runtime options:
  -f, [--force]    # Overwrite files that already exist
  -p, [--pretend]  # Run but do not make any changes
  -q, [--quiet]    # Suppress status output
  -s, [--skip]     # Skip files that already exist

I believe the documentation should be updated giving a valid example and mentioning that some aliases are already taken.

I am using thor (0.18.1).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions