use running_from_source_tree()
[ardour.git] / gtk2_ardour / opts.cc
index 9e5cbc6f3f06a62a12d2260167446beba0f6496d..68220fa7c168d3c8e85f629c470a83e04fbada9a 100644 (file)
 #include "ardour/debug.h"
 #include "ardour/session.h"
 
+#ifndef NDEBUG // "-H"
+#include "processor_box.h"
+#endif
+
 #include "opts.h"
 
 #include "i18n.h"
@@ -84,14 +88,9 @@ print_help (const char *execname)
 int
 ARDOUR_COMMAND_LINE::parse_opts (int argc, char *argv[])
 {
-       const char *optstring = "abBc:C:dD:hk:E:m:N:nOp:PST:U:vV";
+       const char *optstring = "abBc:C:dD:hHk:E:m:N:nOp:PST:U:vV";
        const char *execname = strrchr (argv[0], '/');
 
-       if (getenv ("ARDOUR_SAE")) {
-               menus_file = "ardour-sae.menus";
-               keybindings_path = "SAE";
-       }
-
        if (execname == 0) {
                execname = argv[0];
        } else {
@@ -143,6 +142,11 @@ ARDOUR_COMMAND_LINE::parse_opts (int argc, char *argv[])
                        print_help (execname);
                        exit (0);
                        break;
+               case 'H':
+#ifndef NDEBUG
+                       ProcessorBox::show_all_processors = true;
+#endif
+                       break;
                case 'a':
                        check_announcements = false;
                        break;