Neopolitan Pizza Maker

    yargs-dashed

    0.1.0 • Public • Published

    yargs-dashed Build Status Dependency Status DevDependency Status

    npm

    Wrapper around yargs that allows passing options in the dashed style as in head -10 file.txt (non-standard).

    API

    In addition to the yargs':

    .dashed(name)

    Registers option name as a dashed option.

    The dashed option is the one that satisfies the following constraints:

    • it comes first in the list;
    • it starts with a dash;
    • other than that, it consists solely of digits and uppercase.

    Such options are rewritten in a conforming way (head -1 file.txt -> head --depth 1 file.txt).

    Note that only one such option can be recognized and it must be the first.

    Install

    npm install yargs-dashed

    License

    MIT

    Install

    npm i yargs-dashed

    DownloadsWeekly Downloads

    3

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • eush77