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

Typo in --DRT or using help does not make the program exit #17421

Open
dlangBugzillaToGithub opened this issue Feb 9, 2021 · 0 comments
Open
Labels

Comments

@dlangBugzillaToGithub
Copy link

Mathias LANG (@Geod24) reported this on 2021-02-09T09:18:20Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=21624

Description

It is a common expectation for users that using `--help` on a program will *NOT* start the program. Likewise, when a user makes a typo in the arguments passed to a program, the program should *NOT* start.

The arguments parsing in DRuntime doesn't do any of this. `--DRT-gcopts=foo` (notice the extra 's' after `gcopt`) will happily run the program, and so will `--DRT-gcopt=help`.
@thewilsonator thewilsonator added the Druntime Specific to druntime label Dec 8, 2024
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

2 participants