/** * Copyright - See the COPYRIGHT that is included with this distribution. * pvxs is distributed subject to a Software License Agreement found * in file LICENSE that is included with this distribution. */ #include "cliutil.h" namespace pvxs { bool operator==(const ArgVal& rhs, const ArgVal& lhs) { return rhs.defined==lhs.defined && rhs.value==lhs.value; } GetOpt::GetOpt(int argc, char *argv[], const char *spec) :argv0("") { if(argc>=1) argv0 = argv[0]; bool allpos = false; // after "--", treat all remaining as positional for(int i=1; i