Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundling multiple short-options is fucked #6

Closed
Alhadis opened this issue Dec 29, 2015 · 1 comment
Closed

Bundling multiple short-options is fucked #6

Alhadis opened this issue Dec 29, 2015 · 1 comment
Assignees
Labels

Comments

@Alhadis
Copy link
Owner

Alhadis commented Dec 29, 2015

I'll let code explain this one:

/** Read CLI args */
let _ = getOpts(process.argv.slice(2), {
    "-m, --mutilate":        "<bool>",
    "-u, --underline-urls":  "<bool>",
    "-i, --indent":          "<string>",
    "-c, --colour, --colours, --colourise": "<bool>"
});
./index.js -c0 -u0

-u0 gets treated as an element of .argv, yet -u 0 doesn't.

@Alhadis Alhadis added the bug label Dec 29, 2015
@Alhadis Alhadis self-assigned this Dec 29, 2015
@Alhadis
Copy link
Owner Author

Alhadis commented Mar 12, 2016

This just in, also fucked: --width=320 --config=/some/file/or/some/shit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant