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

Correction in README about extraneous command-line arguments #272

Closed
wants to merge 1 commit into from

Conversation

sstur
Copy link

@sstur sstur commented Mar 4, 2022

There was a statement in the README about command-line arguments that are not node-dev options "are passed on to the node process."

In practice this is not the case and passing Node arguments such as --preserve-symlinks results in the process exiting with an AssertionError (see screenshot below).

Screenshot

image

There was a statement in the README about command-line arguments that are not node-dev options "are passed on to the node process."

In practice this is not the case and passing Node arguments such as `--preserve-symlinks` results in the process exiting with an AssertionError (see screenshot below).

### Screenshot
<img width="1512" alt="image" src="https://user-images.githubusercontent.com/369384/156674030-a3c50dc0-1c86-48b3-a08f-d6125d6c20a4.png">
@bjornstar
Copy link
Collaborator

node-dev --preserve-symlinks -- src/server.ts

Otherwise it looks like you're trying to run node-dev --preserve-symlinks=src/server.ts where there is no script specified to run hence the error.

We have added the most requested options for node which has very non-standard command line parsing that we aren't trying to fully replicate. I'd be happy to add preserve-symlinks to the list.

@sstur
Copy link
Author

sstur commented Mar 4, 2022

Oh wow, thanks for the clarification, that seems obvious now that I think about it, I had a look at the source and probably would have realized this if I was more familiar with how minimist parses args.

Anyway, I appreciate the super fast followup with PR 273, that adds clarity and directly addresses the flag in question. Fantastic!

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

Successfully merging this pull request may close these issues.

None yet

2 participants