Skip to content

Conversation

niktayv
Copy link
Contributor

@niktayv niktayv commented Jun 5, 2025

Fixes #194

Now the arguments are passed correctly with either

node lib/app.js --port=4000 /some/path/to/wwwroot 

or, in a new fashion,

node lib/app.js --port=4000 -- /some/path/to/wwwroot

var yargs = require('yargs')
.parserConfiguration({
"duplicate-arguments-array": false
"halt-at-non-option": true,
Copy link
Contributor

Choose a reason for hiding this comment

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

This one was my fault, sorry about that.

I remember there were some tests in the test suite initially failing so there was at least some testing of yargs, could a test be added that covers the current bug so it doesn't happen again in the future?

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.

yargs upgrade breaks wwwroot argument from CLI
2 participants