Skip to content

Conversation

evanlucas
Copy link
Contributor

Done by mutating the actual argument vector before processing.

Previously, with the added getopt option parsing, node -ie would crash. This fixes cases like that.

Done by mutating the actual argument vector before processing.
@Fishrock123
Copy link
Contributor

cc @bnoordhuis

@mscdex mscdex added the c++ Issues and PRs that require attention from people who are familiar with C++. label Jun 1, 2015
// "node -abc --scm git" -> "node -a -b -c --scm git"
// implementation was adapted from
// https://github.com/clibs/commander/blob/master/src/commander.c
static char ** normalize_args(int *argc, char **argv) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style issues: use type* everywhere. Stars lean to the left.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants