From 0ddff57b50dfa9f67f8ef5af1e6a36ee1e9dadda Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 8 Jan 2012 16:38:49 +0000 Subject: sort debug options git-svn-id: svn://localhost/ardour2/branches/3.0@11194 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd/debug.cc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'libs/pbd/debug.cc') diff --git a/libs/pbd/debug.cc b/libs/pbd/debug.cc index e7ec767f87..c2a8fa92b4 100644 --- a/libs/pbd/debug.cc +++ b/libs/pbd/debug.cc @@ -21,6 +21,8 @@ #include #include #include +#include +#include #include "pbd/debug.h" @@ -100,9 +102,17 @@ void 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 << "\tAll" << endl; + cout << '\t' << X_("all") << endl; + + vector options; for (map::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::iterator i = options.begin(); i != options.end(); ++i) { + cout << "\t" << (*i) << endl; + } } -- cgit v1.2.3