Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Issue 9260 - std.getopt: Implement boolean parsing with optional argument #1050

Merged
merged 1 commit into from Mar 8, 2013

Conversation

Projects
None yet
3 participants

@ghost ghost closed this Jan 3, 2013

@ghost ghost reopened this Jan 3, 2013

Owner

andralex commented Jan 3, 2013

Consider:

/path/to/program --flag file.txt

Then we have a parse error instead of just invoking the program with a flag and a file name.

@ghost

ghost commented Jan 3, 2013

Ok updated. This doesn't break backwards compatibility, and supports the syntaxes:

--flag
--flag=true // same as above
--flag=false

@alexrp alexrp added a commit that referenced this pull request Mar 8, 2013

@alexrp alexrp Merge pull request #1050 from AndrejMitrovic/Fix9260
Issue 9260 - std.getopt: Implement boolean parsing with optional argument
2ad6268

@alexrp alexrp merged commit 2ad6268 into dlang:master Mar 8, 2013

1 check was pending

default Pass: 9, In Progress: 1
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment