Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

unspecified/undefined options should be treated as flags unless followed by a value #67

@GerHobbelt

Description

@GerHobbelt

feature request:
If you do not define option --bugger (via the .options() method or other nomnom API) then nomnom requires it to be followed by a value, i.e.

  --bugger 1

is okay, while

  --bugger

will print an error report: 'bugger expects a value'.

Since accepting unspecified/undefined options seems to be a feature of nomnom (several existing tests expect this behaviour), then it makes sense to also accept --bugger as in the example above and treat it as a flag option: opts.bugger === true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions