mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-09 12:23:39 -04:00
patch that allows arg start strings to be pound defined to easily conform to different platforms
This commit is contained in:
parent
d0cddc3183
commit
122b50e26d
@ -64,12 +64,15 @@ namespace TCLAP {
|
|||||||
class Arg
|
class Arg
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
/**
|
||||||
|
* Prevent accidental copying.
|
||||||
|
*/
|
||||||
|
Arg(const Arg& rhs);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prevent accidental copying
|
* Prevent accidental copying.
|
||||||
*/
|
*/
|
||||||
Arg(const Arg& rhs);
|
Arg& operator=(const Arg& rhs);
|
||||||
Arg& operator=(const Arg& rhs);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates whether the rest of the arguments should be ignored.
|
* Indicates whether the rest of the arguments should be ignored.
|
||||||
@ -214,21 +217,32 @@ class Arg
|
|||||||
static char blankChar() { return (char)7; }
|
static char blankChar() { return (char)7; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The char that indicates the beginning of a flag. Currently '-'.
|
* The char that indicates the beginning of a flag. Defaults to '-', but
|
||||||
|
* clients can define TCLAP_FLAGSTARTCHAR to override.
|
||||||
*/
|
*/
|
||||||
static char flagStartChar() { return '-'; }
|
#ifndef TCLAP_FLAGSTARTCHAR
|
||||||
|
#define TCLAP_FLAGSTARTCHAR '-'
|
||||||
|
#endif
|
||||||
|
static char flagStartChar() { return TCLAP_FLAGSTARTCHAR; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The sting that indicates the beginning of a flag. Currently "-".
|
* The sting that indicates the beginning of a flag. Defaults to "-", but
|
||||||
* Should be identical to flagStartChar.
|
* clients can define TCLAP_FLAGSTARTSTRING to override. Should be the same
|
||||||
|
* as TCLAP_FLAGSTARTCHAR.
|
||||||
*/
|
*/
|
||||||
static const std::string flagStartString() { return "-"; }
|
#ifndef TCLAP_FLAGSTARTSTRING
|
||||||
|
#define TCLAP_FLAGSTARTSTRING "-"
|
||||||
|
#endif
|
||||||
|
static const std::string flagStartString() { return TCLAP_FLAGSTARTSTRING; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The sting that indicates the beginning of a name. Currently "--".
|
* The sting that indicates the beginning of a name. Defaults to "--", but
|
||||||
* Should be flagStartChar twice.
|
* clients can define TCLAP_NAMESTARTSTRING to override.
|
||||||
*/
|
*/
|
||||||
static const std::string nameStartString() { return "--"; }
|
#ifndef TCLAP_NAMESTARTSTRING
|
||||||
|
#define TCLAP_NAMESTARTSTRING "--"
|
||||||
|
#endif
|
||||||
|
static const std::string nameStartString() { return TCLAP_NAMESTARTSTRING; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name used to identify the ignore rest argument.
|
* The name used to identify the ignore rest argument.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user