Commit graph

63 commits

Author SHA1 Message Date
Robert burner Schadek
d602a5347a getoptx
some tinkering

alot more

comments

some more

more doc

getoptX cleanup

tuple -> struct

getoptX -> getoptEx

Required

getoptEx is now inline

GetoptRslt -> GetoptResult

more info

some comment fixes
2014-06-17 13:48:17 +02:00
Stefan Frijters
98bf97467a Fix Issue 12921 - Module std.getopt does not respect property syntax 2014-06-14 13:56:47 +02:00
k-hara
46eef6b58e Supply the lacked local import 2014-04-03 12:37:30 +09:00
Andrei Alexandrescu
74d394737f Merge pull request #2049 from AndrejMitrovic/Fix5316
std.getopt: Add character-separated elements support for arrays and associative arrays
2014-03-31 23:34:08 -07:00
Andrej Mitrovic
9924b7aba5 Fixes Issue 5316 - Add character-separated elements support for arrays and associative arrays. 2014-03-31 18:25:27 +02:00
Andrej Mitrovic
43248700c6 Remove trailing spaces. 2014-03-24 19:42:47 +01:00
Andrej Mitrovic
f24c49312a Fix Issue 5228 - Add a GetoptException and document which exceptions are thrown. 2014-03-24 18:54:33 +01:00
Andrej Mitrovic
28694ed0dc Strip spaces for the 1000th time. 2014-03-24 18:50:23 +01:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
Robert burner Schadek
9de2b2f4f0 fix for bugzilla 7693
enum and bool both fixed and pretty minimal
2014-02-04 16:11:29 +01:00
Johannes Pfau
8b124e461c [ARM] Fix phobos unit tests 2014-01-15 16:31:25 +01:00
Jonas Drewsen
56ded71a60 Clean up std.getopt docs
After browsing the docs using ddox it is obvious that the standard of "one line short summary and the following lines for in depth descriptions" is not followed in phobos. This commit is mostly to see if such a fixes are wanted/accepted at all.
2014-01-13 19:44:11 +01:00
Andrei Alexandrescu
4900690b77 Fix issue 11764 2013-12-18 12:17:19 -08:00
Andrei Alexandrescu
b53890b078 Fix issue 5762 2013-12-16 15:53:09 -08:00
jlquinn
a6955b5965 Update getopt.d
Fix docs - Exception is thrown, not ConvException.
2013-11-20 13:14:12 -05:00
Andrej Mitrovic
83852de6c1 Fixes Issue 11123 - std.getopt should support function callbacks. 2013-09-27 15:19:11 +02:00
Hackerpilot
5cc095ee3f Removed empty declarations 2013-07-03 10:36:53 -07:00
Alex Rønne Petersen
2ad62682c4 Merge pull request #1050 from AndrejMitrovic/Fix9260
Issue 9260 - std.getopt: Implement boolean parsing with optional argument
2013-03-08 10:38:55 -08:00
H. S. Teoh
fcc03537cf Improve code based on feedback. 2013-02-24 22:18:35 -08:00
H. S. Teoh
6293612e19 Add unittest. 2013-02-24 22:18:35 -08:00
H. S. Teoh
20cda1eae0 getopt should consume options terminator "--".
As stated by the docs. (Cf. issue 9583)
2013-02-24 22:18:35 -08:00
Andrej Mitrovic
ba8ea757b9 Fixes Issue 9260 - std.getopt: Implement boolean parsing with optional argument. 2013-01-25 00:40:08 +01:00
Walter Bright
380ae65511 remove empty statements 2011-12-29 00:05:45 -08:00
Maksim Zholudev
180839bc10 Unittest for bugzilla 6888. 2011-11-07 08:11:55 +01:00
Maksim Zholudev
fe1c21d04d Fix issue 6888. 2011-11-04 08:23:42 +01:00
shoo
b3f5e396cf Fixed issue 6887
http://d.puremagic.com/issues/show_bug.cgi?id=6887
2011-11-03 23:35:46 +09:00
Vladimir Panteleev
bcbfe2d433 Various DDoc syntax fixes 2011-08-07 22:59:37 +03:00
Jonathan M Davis
da0fd9dbf8 Merge pull request #101 from jmdavis/string
Improvements for std.string, std.uni, and std.ctype.
2011-07-03 00:12:57 -07:00
Daniel Murphy
cbe7a73852 Swap the order to allow numeric enums to be read as enums. 2011-06-30 08:14:30 +10:00
jmdavis
dd3a0c20a2 Created std.ascii to replace std.ctype.
All of the new, properly camelcased functions in std.ctype have been
moved to std.ascii, and std.ctype has been scheduled for deprecation.
2011-06-14 04:06:54 -07:00
jmdavis
30069ea6f0 Replaced calls to std.string and std.ctype's toupper with their toUpper counterparts. 2011-06-12 16:59:52 -07:00
Jens K. Mueller
29eec1ee23 Two changes for enum handling in getopt
It's better to define enum Color { no, yes } because this enables
writing compact code like if (color) { ... }. Further setting the
variable is done using std.conv's parse which makes the code more
compact and throws if the conversion fails.
2011-04-06 19:46:54 +02:00
Jens K. Mueller
4c71539a9a Add handling enums to getopt
getopt does not allow handling enums. This commit introduces the
necessary changes. It updates the documentation accordingly and provides
some unittests.
2011-04-05 22:48:21 +02:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
Andrei Alexandrescu
331dd3a489 Moved split from string to array, made one more pass through array 2011-01-19 06:44:46 +00:00
Don Clugston
84477a5d3e Move Boost copyright declaration from ddoc to normal comment. Fixes ugly ddoc output. 2010-11-24 19:34:47 +00:00
Don Clugston
1372f5b606 Fixed mismatched ddoc parentheses 2010-11-24 07:57:27 +00:00
Shin Fujishiro
792cdaf467 Bug 5220: Make std.conv.ConvError an Exception instead of an Error
Renamed ConvError -> ConvException.
2010-11-16 20:39:50 +00:00
Andrei Alexandrescu
a778d41a3c Fix for bugzilla 2142 2010-09-26 15:24:50 +00:00
David Simcha
4e805cfc78 Bug 2958: std.getopt RangeError on missing arg 2010-08-21 00:19:57 +00:00
Andrei Alexandrescu
8928d06403 Added documentation clarifications for short options 2010-08-08 19:27:44 +00:00
Andrei Alexandrescu
432e3fdfc8 Replaced std.contracts with std.exception throughout 2010-07-04 22:09:03 +00:00
Shin Fujishiro
8bd8ddf0a4 Reverted r1557 (and r1513 partially).
r1557 relaxed some unittests, as some platforms had accuracy problem with strtold().  But the strict unittests were requirements for D; so r1557 should be reverted.

With this change, these unittests will fail on some platforms such as OSX and Gentoo.  However, the unittests SHOULD fail because using strtold() on these platforms is a 'bug' -- we should provide an accurate implementation.

Related issues:
3758: Create D impementation of to!(float, string), etc.
4200: "to!real(to!string(real.min_normal))" raises std.conv.ConvError
2010-05-26 14:21:39 +00:00
Shin Fujishiro
7aea7b005d We should not expect exact precision of strtold().
The precition may vary between platforms or even different versions of libc.

Tested on FreeBSD and Gentoo Linux with dmd r501.
2010-05-26 05:59:52 +00:00
Walter Bright
53a3eec534 invariant => immutable 2010-05-05 22:19:49 +00:00
Sean Kelly
747f3cf1e4 Changed Phobos to use the Boost license. Currently, all public domain modules and all licensed modules by Walter, Andrei, Bartosz, and Don have been changed to use this license (excepting std.c, for the moment). Ideally, all Phobos modules will eventually be distributed under this license, which means obtaining permission from a few more authors, deleting, or rewriting some modules.
Removed std.openrj.
2009-09-16 18:19:51 +00:00
Andrei Alexandrescu
e336106541 minor 2009-07-04 06:59:56 +00:00
Andrei Alexandrescu
b2f892a285 Added support for parameterless delegates 2009-04-06 04:35:25 +00:00
Andrei Alexandrescu
e9982aae07 minor improvements 2009-01-23 16:25:21 +00:00
Walter Bright
734819923f now runs unittests with warnings on 2008-07-10 09:46:14 +00:00