mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +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
|
class GetOptException : Exception
|
||||||
{
|
{
|
||||||
|
@safe pure nothrow
|
||||||
|
this(string msg, string file = __FILE__,
|
||||||
|
size_t line = __LINE__)
|
||||||
|
{
|
||||||
|
super(msg, file, line);
|
||||||
|
}
|
||||||
@safe pure nothrow
|
@safe pure nothrow
|
||||||
this(string msg, Exception next, string file = __FILE__,
|
this(string msg, Exception next, string file = __FILE__,
|
||||||
size_t line = __LINE__)
|
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.
|
Parse and remove command line options from an string array.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue