mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-29 00:41:33 +00:00
spicec: enable multiple CmdLineParser instantiations
Used by controller. One instance at a time, not thread-safe. Add basename() for win32.
This commit is contained in:
parent
e8d4757451
commit
1d08cc1458
@ -53,6 +53,11 @@ CmdLineParser::CmdLineParser(std::string description, bool allow_positional_args
|
||||
, _positional_args (allow_positional_args)
|
||||
, _done (false)
|
||||
{
|
||||
//Enables multiple instantiations. One at a time, not thread-safe.
|
||||
optind = 1;
|
||||
opterr = 1;
|
||||
optopt = 0;
|
||||
optarg = 0;
|
||||
}
|
||||
|
||||
CmdLineParser::~CmdLineParser()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user