Matt Kline
aee709b080
Remove array dup from this PR
2015-02-09 22:17:47 -08:00
Matt Kline
cd8b96c032
Add keeEndOfOptions flag to std.getopt
...
Currently, the endOfOptions separator ("--" by default) is
stripped from args by getopt. At times it may be advantageous to
keep this separator, such as when your program is forwarding
command line arguments to some other program.
Without this, hacks such as
auto remaining = args.find(endOfOptions);
args = args[0 .. $ - remaining.length];
getopt(args, opts);
args = args ~ remaining;
are needed to achieve the desired behavior.
2015-02-09 20:24:46 -08:00
Robert burner Schadek
014ff8e155
getopt public undocumented symbols and style
...
some of the symbols where clearly only used from within getopt but still where
public.
additionally some style violation fixes
2015-01-21 14:48:31 +01:00
Ilya Yaroshenko
48547acdd5
update scope import in std.getopt
2014-11-16 00:27:53 +03:00
Ilya Yaroshenko
dc5cc96b8e
std.getopt: clean imports
2014-11-14 16:47:46 +03:00
Robert burner Schadek
cd1191eecf
some doc fixes
2014-10-22 21:43:09 +02:00
Geod24
0fb95b8c27
Usage of WEB macro for License everywhere
2014-10-15 11:30:42 +02:00
Robert burner Schadek
b7e5be9543
getopt had some trailing whitespace
2014-10-10 14:00:26 +02:00
Nils Boßung
b676492d66
whoops, forgot one ++i
2014-08-18 07:24:47 +02:00
Nils Boßung
c40fd397c6
fix Issue 13317 - std.getopt: endOfOptions broken when it doesn't look like an option
2014-08-18 01:14:40 +02:00
Nils Boßung
9c10c24220
fix Issue 13316 - std.getopt: implicit help option breaks the next argument
2014-08-18 00:48:01 +02:00
Nils Boßung
d51af72d5a
fix Issue 13315 - std.getopt: implicit help option doesn't work without config.passThrough
2014-08-18 00:11:13 +02:00
H. S. Teoh
5a6aec71db
Fix screwed up list nesting in getopt's ddoc comment.
2014-08-08 15:06:32 -07:00
Alex Rønne Petersen
561b28ebcc
Merge pull request #2398 from CyberShadow/getopt-bundling-doc
...
std.getopt: Remove opinionated comment regarding option bundling
2014-08-04 04:36:20 +02:00
Vladimir Panteleev
3ec999261e
std.getopt: Remove opinionated comment regarding option bundling
...
The behavior is standard in UNIX programs. Although it wouldn't make sense
to change the default at this point, D documentation is not a good place
for criticizing established standards.
2014-08-04 02:22:12 +00:00
k-hara
35bf8e1719
fix property enforcement
2014-07-30 19:15:39 +09:00
Walter Bright
dc97d14b3c
Merge pull request #2072 from burner/getoptx
...
getoptX Help Messages for getopt
2014-07-10 15:04:28 -07:00
AndrewEdwards
571056369b
Merge branch 'master' of https://github.com/AndrewEdwards/phobos
2014-06-30 01:36:56 +09:00
AndrewEdwards
3d3b3372be
Update getopt.d
...
Fix Ddoc: Stray '(' warning.
2014-06-29 17:05:33 +09:00
AndrewEdwards
de984190f3
Fix unterminated $(OL
2014-06-29 02:46:00 +09:00
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