mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 13:40:20 +03:00
std.getopt: Re-add constructor removed in PR #3489
This commit is contained in:
parent
edc405cacd
commit
c403d644a4
1 changed files with 9 additions and 0 deletions
|
@ -45,6 +45,12 @@ $(UL
|
|||
*/
|
||||
class GetOptException : Exception
|
||||
{
|
||||
@safe pure nothrow
|
||||
this(string msg, string file = __FILE__,
|
||||
size_t line = __LINE__)
|
||||
{
|
||||
super(msg, file, line);
|
||||
}
|
||||
@safe pure nothrow
|
||||
this(string msg, Exception next, string file = __FILE__,
|
||||
size_t line = __LINE__)
|
||||
|
@ -53,6 +59,9 @@ class GetOptException : Exception
|
|||
}
|
||||
}
|
||||
|
||||
static assert(is(typeof(new GetOptException("message"))));
|
||||
static assert(is(typeof(new GetOptException("message", Exception.init))));
|
||||
|
||||
/**
|
||||
Parse and remove command line options from an string array.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue