mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-12 17:46:34 +01:00
commandline: Allow -D to be specified multiple times
Yes, -D takes a comma separated list, but it is still confusing and unnecessary that the first -D options were silently ignored.
This commit is contained in:
parent
04b3cf980e
commit
8633e82891
1 changed files with 5 additions and 8 deletions
|
|
@ -132,7 +132,6 @@ PBD::parse_debug_options (const char* str)
|
||||||
typedef boost::tokenizer<boost::char_separator<char> > tokenizer;
|
typedef boost::tokenizer<boost::char_separator<char> > tokenizer;
|
||||||
boost::char_separator<char> sep (",");
|
boost::char_separator<char> sep (",");
|
||||||
tokenizer tokens (in_str, sep);
|
tokenizer tokens (in_str, sep);
|
||||||
DebugBits bits;
|
|
||||||
|
|
||||||
for (tokenizer::iterator tok_iter = tokens.begin(); tok_iter != tokens.end(); ++tok_iter) {
|
for (tokenizer::iterator tok_iter = tokens.begin(); tok_iter != tokens.end(); ++tok_iter) {
|
||||||
if (*tok_iter == "list") {
|
if (*tok_iter == "list") {
|
||||||
|
|
@ -149,14 +148,12 @@ PBD::parse_debug_options (const char* str)
|
||||||
const char* cstr = (*tok_iter).c_str();
|
const char* cstr = (*tok_iter).c_str();
|
||||||
|
|
||||||
if (strncasecmp (cstr, i->first, strlen (cstr)) == 0) {
|
if (strncasecmp (cstr, i->first, strlen (cstr)) == 0) {
|
||||||
bits |= i->second;
|
debug_bits |= i->second;
|
||||||
cout << string_compose (X_("Debug flag '%1' set\n"), i->first);
|
cout << string_compose (X_("Debug flag '%1' set\n"), i->first);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
debug_bits = bits;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue