Issue 21624 - Typo in `--DRT` or using `help` does not make the program exit
Summary: Typo in `--DRT` or using `help` does not make the program exit
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: All All
: P3 minor
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-09 09:18 UTC by Mathias LANG
Modified: 2024-12-07 13:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Mathias LANG 2021-02-09 09:18:20 UTC
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`.
Comment 1 dlangBugzillaToGithub 2024-12-07 13:40:59 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/17421

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB