mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-10 12:49:08 -04:00
Added exit-exception class
This commit is contained in:
parent
0363ecf25d
commit
ce79a6fa1c
@ -1,3 +1,4 @@
|
|||||||
|
// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*-
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
*
|
*
|
||||||
@ -183,6 +184,16 @@ class SpecificationException : public ArgException
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class ExitException {
|
||||||
|
public:
|
||||||
|
ExitException(int estat) : _estat(estat) {}
|
||||||
|
|
||||||
|
int getExitStatus() const { return _estat; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
int _estat;
|
||||||
|
};
|
||||||
|
|
||||||
} // namespace TCLAP
|
} // namespace TCLAP
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user