mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Added the option to leave out the short parameter option
This commit is contained in:
@@ -14,10 +14,9 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include "getoptpp.h"
|
||||
#include <stdexcept>
|
||||
#include <cassert>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -199,7 +198,8 @@ Parameter::~Parameter() {}
|
||||
|
||||
const string& Parameter::description() const { return fdescription; }
|
||||
const string& Parameter::longOption() const { return flongOption; }
|
||||
char Parameter::shortOption() const { return fshortOption; }
|
||||
bool Parameter::hasShortOption() const { return fshortOption != 0x0; }
|
||||
char Parameter::shortOption() const { assert(hasShortOption()); return fshortOption; }
|
||||
|
||||
/*
|
||||
*
|
||||
|
Reference in New Issue
Block a user