mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-08-04 10:16:41 -04:00
added failure to the interface
This commit is contained in:
parent
e827de8d60
commit
db4d37cd7c
@ -91,6 +91,13 @@ class CmdLineInterface
|
|||||||
*/
|
*/
|
||||||
virtual void version( int exitVal = 0 )=0;
|
virtual void version( int exitVal = 0 )=0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prints (to stderr) an error message, short usage and exits with a
|
||||||
|
* value of 1. Can be overridden to produce alternative behavior.
|
||||||
|
* \param e - The ArgException that caused the failure.
|
||||||
|
*/
|
||||||
|
virtual void failure( const ArgException& e )=0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses the command line.
|
* Parses the command line.
|
||||||
* \param argc - Number of arguments.
|
* \param argc - Number of arguments.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user