Skip to content

short switches don't take numeric arguments #395

@Sequoia

Description

@Sequoia

in minimist (or tail for that matter), -n10 sets n (or the switch it aliases) to 10.

A similar call with commander sets n (or the switch it aliases) to -1. This seems to mean a minimist to commander rewrite forces a CLI change, i.e. a cronjob that previously called foo -n10 will stop functioning properly if foo is upgraded from the minimist version to the commander version.

Is there a workaround? Am I mistaken?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions