mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
sort debug options
git-svn-id: svn://localhost/ardour2/branches/3.0@11194 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d3346d5466
commit
0ddff57b50
1 changed files with 12 additions and 2 deletions
|
|
@ -21,6 +21,8 @@
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
#include <vector>
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
#include "pbd/debug.h"
|
#include "pbd/debug.h"
|
||||||
|
|
||||||
|
|
@ -100,9 +102,17 @@ void
|
||||||
PBD::list_debug_options ()
|
PBD::list_debug_options ()
|
||||||
{
|
{
|
||||||
cout << _("The following debug options are available. Separate multipe options with commas.\nNames are case-insensitive and can be abbreviated.") << endl << endl;
|
cout << _("The following debug options are available. Separate multipe options with commas.\nNames are case-insensitive and can be abbreviated.") << endl << endl;
|
||||||
cout << "\tAll" << endl;
|
cout << '\t' << X_("all") << endl;
|
||||||
|
|
||||||
|
vector<string> options;
|
||||||
|
|
||||||
for (map<const char*,uint64_t>::iterator i = _debug_bit_map.begin(); i != _debug_bit_map.end(); ++i) {
|
for (map<const char*,uint64_t>::iterator i = _debug_bit_map.begin(); i != _debug_bit_map.end(); ++i) {
|
||||||
cout << "\t" << i->first << endl;
|
options.push_back (i->first);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sort (options.begin(), options.end());
|
||||||
|
|
||||||
|
for (vector<string>::iterator i = options.begin(); i != options.end(); ++i) {
|
||||||
|
cout << "\t" << (*i) << endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue