Skip to content

Arg parsing fails if URL ends with ] #520

Open
minimistjs/subarg
#9
@MattIPv4

Description

@MattIPv4

autocannon http://localhost\?id=\[1\] results in the help message being shown (if you log argv, it seems that the URL [missing the closing ]] is buried in argv._[0]._[0]).

autocannon http://localhost\?id=\[1\]\&other works as expected though (and logging argv shows that the URL is at argv._[0] as the code expects.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions