Commit graph

140 commits

Author SHA1 Message Date
Jon Degenhardt
296184f541 Fix issue 17650: std.getopt range violation when option value is a hyphen. 2017-07-15 13:08:53 -07:00
Hackerpilot
59108e6d3a Unit test for 17574. 2017-06-30 13:33:06 -07:00
Hackerpilot
bb0340766b Fix issue 17574 - Avoid range error by checking the result of indexOf 2017-06-29 15:20:32 -07:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00:00
Sebastian Wilzbach
998ad51fd7 Sort selective imports 2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
Jonathan M Davis
4e8cab7cdf Fix some bad/slangy English in std.getopt.
I don't think that it makes sense to use slang like "dunno" in a
standard library.
2017-05-13 02:14:33 -07:00
Jon Degenhardt
69cfa938ee std.getopt: make setConfig safe, pure, nothrow, nogc 2017-04-26 10:56:48 -07:00
Jon Degenhardt
a976764d54 std.getopt: Make private functions safe. 2017-04-25 23:10:40 -07:00
Jon Degenhardt
cacf586e93 std.getopt unit tests: No trailing whitespace. 2017-04-24 00:54:21 -07:00
Jon Degenhardt
b0b63869a3 std.getopt unit tests: No trailing whitespace. 2017-04-24 00:48:32 -07:00
Jon Degenhardt
9d59d8cd73 std.getopt: Add unit tests for delegates as callbacks. 2017-04-24 00:32:47 -07:00
Jon Degenhardt
684f41b64e Fix issue 17327. Review comments: drop continue statement. 2017-04-16 08:01:49 -07:00
Jon Degenhardt
c1d49fc494 Fix issue 17327 - std.getopt: Repeated boolean command option fails. 2017-04-16 00:21:49 -07:00
Amaury SECHET
d84a86d1a7 Interpret single letter argument as short 2017-03-14 19:28:14 -04:00
Sebastian Wilzbach
a2c6398332 Automatically add spaces to binary operators (==)
command:

sed -E "s/([[:alnum:]]) == ([[:alnum:]])/\1 == \2/g" -i **/*.d
sed -E "s/([[:alnum:]])== ([[:alnum:]])/\1 == \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) ==([[:alnum:]])/\1 == \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
a36cec8686 DScanner: automatially set all unattributed unittests to @safe or @system 2017-02-22 05:42:04 +01:00
Nick Sabalausky
b41721df86 getopt.config: Document which options are default. 2017-02-20 13:40:42 -05:00
Jack Stouffer
824bbee70d Merge pull request #5010 from Chaosus/master
Make std.getopt.autoIncrementChar use private modifier
2017-01-05 14:55:09 -05:00
Chaosus
281e4e09fa Make std.getopt.autoIncrementChar use private modifier 2017-01-02 21:22:42 +03:00
Andrej Mitrovic
43880932f5 Throw error on duplicate long/short options
Fixes Issue 16048
2016-11-23 01:27:54 +01:00
jmdeschenes
024b751547 Fix Issue 16443 - Prevent segmentation fault
If the option name is an empty string an Exception will be raised instead.
2016-08-28 13:58:55 -04:00
anonymous
2be9e31ef6 fix issue 16420 - Incorrect example in std.getopt docs 2016-08-23 22:54:13 +02:00
anonymous
d9a0fdaa2e minor spelling/grammar corrections
comma before "etc."
"til" -> "until"
2016-08-23 22:53:17 +02:00
Jack Stouffer
4c4733ae72 Removed unused variables from std.getopt 2016-07-13 11:33:53 -04:00
Jack Stouffer
541aa66f5d Fixed std.algorithm imports in std.getopt to not be package wide 2016-07-03 01:15:41 -04:00
Atila Neves
4e27b6f376 Add @safe and @system to std.getopt unit tests 2016-07-01 11:25:52 +02:00
Andrei Alexandrescu
81d132f39a Merge pull request #4381 from MartinNowak/merge_stable
Merge remote-tracking branch 'upstream/stable' into merge_stable
2016-06-18 08:31:42 -04:00
Sebastian Wilzbach
ec47ac4224 Remove the WEB macro in favor of HTTP
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +02:00
Martin Nowak
82a147765a Merge remote-tracking branch 'upstream/stable' into merge_stable 2016-05-29 23:56:51 +02:00
Sebastian Wilzbach
2dfbc51f17 Standardize whitespace after imports
Unified with:

sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00
Sebastian Wilzbach
18b8abf60a remove the deprecated wiki macros 2016-05-27 05:52:23 +02:00
Sebastian Wilzbach
484f7bfbe0 enforce: whitespace after catch 2016-05-14 15:28:43 +03:00
Sebastian Wilzbach
d1714c9afb minor style fixes 2016-04-27 04:18:22 +03:00
Sebastian Wilzbach
3d67cd228c style fix: space between operators 2016-04-26 22:26:20 +03:00
Basile Burg
4a21631a0f fix issue 15914 2016-04-14 10:01:50 +02:00
Q. F. Schroll
f88d9402e5 Typo 2016-04-03 16:36:13 +02:00
H. S. Teoh
405858d816 Merge pull request #3859 from BBasile/getopt-checker
Static verification of std.getopt arguments with more helpful error messages
2016-02-17 22:01:21 -08:00
Basile Burg
ad226e92d5 added getOpt constraint that checks the options
on invalid pattern:
- outputs a message that gives a hint about the wrong type
- includes the index of the wrong option

the message doesn't hide the error origin becasue pragma(msg) is used instead or assert(0)
2016-01-19 18:51:47 +01:00
Shriramana Sharma
5978ca7831 migrate other Phobos modules to use std.exception.basicExceptionCtors 2016-01-17 10:39:37 +05:30
Jakob Øvrum
8b495a5e60 Remove use of exit() in std.getopt example
Supersedes #3875
2016-01-12 16:39:20 +09:00
AndrejMitrovic
3612fdab0e Merge pull request #3727 from CyberShadow/pull-20151018-004338
fix Issue 15220 - [REG2.065] std.getopt parses -o=value as "=value"
2015-10-18 15:17:39 +02:00
jibal
dd34ae8757 std.getopt: Documentation fixes and improvements 2015-10-18 03:04:31 +00:00
Vladimir Panteleev
3c7c3ecfd6 fix Issue 15220 - [REG2.065] std.getopt parses -o=value as "=value" 2015-10-18 00:44:23 +00:00
Vladimir Panteleev
c403d644a4 std.getopt: Re-add constructor removed in PR #3489 2015-10-05 19:49:53 +00:00
Robert burner Schadek
6c8b8232c3 fix issue14724
some nicer impl
2015-08-16 23:50:38 +02:00
Steven Schveighoffer
6d3c95ecc5 Change all bold headers to DDOC headers 2015-06-01 18:26:50 -04:00
Steven Schveighoffer
a1591f048b Document --help better.
Removed redundant documentation for GetoptResult
2015-05-29 21:40:32 -06:00
Robert burner Schadek
f52ecdb185 getopt: some string decl fixes 2015-05-28 18:49:56 +02:00
Vladimir Panteleev
c1276c12dd fix Issue 14526 - GetOptException DDOC needs cleanup 2015-05-05 08:06:34 +00:00