From 620f3b9358c1c5c496fa60a835d551e93ab34cb8 Mon Sep 17 00:00:00 2001 From: Len Ovens Date: Fri, 28 Apr 2017 08:19:20 -0700 Subject: Change actions to -A and use -b to output keybindings --- gtk2_ardour/ardour_ui.cc | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/ardour_ui.cc') diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 32a6d9f1f6..738898d2ef 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -688,6 +688,21 @@ ARDOUR_UI::post_engine () */ if (ARDOUR_COMMAND_LINE::show_key_actions) { + stringstream sstr; + Bindings::save_all_bindings_as_html (sstr); + + if (sstr.str().empty()) { + return; + } + cout << sstr.str().c_str(); + + halt_connection.disconnect (); + AudioEngine::instance()->stop (); + exit (0); + + } + + if (ARDOUR_COMMAND_LINE::show_actions) { vector paths; @@ -699,12 +714,12 @@ ARDOUR_UI::post_engine () string ver = ver_in.substr(0, ver_in.find("-")); cout << "\n

Menu actions

" << endl; - cout << "" << endl; + cout << "" << endl; cout << "

\n Every single menu item in " << PROGRAM_NAME << "'s GUI is accessible by control" << endl; cout << " surfaces or scripts.\n

\n" << endl; cout << "

\n The list below shows all available values of action-name as of" << endl; cout << " " << PROGRAM_NAME << " " << ver << ". You can get the current list at any" << endl; - cout << " time by running " << PROGRAM_NAME << " with the -b flag.\n

\n" << endl; + cout << " time by running " << PROGRAM_NAME << " with the -A flag.\n

\n" << endl; cout << "\n " << endl; cout << " " << endl; cout << " \n " << endl; -- cgit v1.2.3
Action NameMenu Name