X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcore%2Fgetopt.cpp;h=cbc0afb0d76e9d5eec8f79e4a835d1cf01ff7700;hb=HEAD;hp=13e235f25152912a5f86466b129cd2a9bf5999c7;hpb=497e54c026f87ef020477bfe7c0249802373c630;p=libs%2Fcore.git diff --git a/source/core/getopt.cpp b/source/core/getopt.cpp index 13e235f..cbc0afb 100644 --- a/source/core/getopt.cpp +++ b/source/core/getopt.cpp @@ -6,8 +6,7 @@ using namespace std; namespace Msp { -GetOpt::GetOpt(): - help(false) +GetOpt::GetOpt() { add_option("help", help, NO_ARG).set_help("Displays this help"); } @@ -318,9 +317,6 @@ GetOpt::OptionImpl::OptionImpl(char s, const string &l, const Store &t, ArgType shrt(s), lng(l), arg_type(a), - seen_count(0), - ext_seen_count(0), - metavar("ARG"), store(t.clone()) { }