leftmost_position => leftmost_sample, current_page_frames => current_page_samples
[ardour.git] / gtk2_ardour / opts.cc
index 6b5f19bdd6ed0e499c0899b0498684ad01fe75a8..b29f106bfeedfdfa104c90aadbf91dd406928fd4 100644 (file)
@@ -47,6 +47,7 @@ bool ARDOUR_COMMAND_LINE::finder_invoked_ardour = false;
 string ARDOUR_COMMAND_LINE::immediate_save;
 string ARDOUR_COMMAND_LINE::jack_session_uuid;
 string ARDOUR_COMMAND_LINE::load_template;
+bool ARDOUR_COMMAND_LINE::check_announcements = true;
 
 using namespace ARDOUR_COMMAND_LINE;
 
@@ -57,6 +58,7 @@ print_help (const char *execname)
             << _("  [SESSION_NAME]              Name of session to load\n")
             << _("  -v, --version               Show version information\n")
             << _("  -h, --help                  Print this message\n")
+            << _("  -a, --no-announcements      Do not contact website for announcements\n")
             << _("  -b, --bindings              Print all possible keyboard binding names\n")
             << _("  -c, --name <name>           Use a specific jack client name, default is ardour\n")
             << _("  -d, --disable-plugins       Disable all plugins in an existing session\n")
@@ -65,6 +67,7 @@ print_help (const char *execname)
             << _("  -m, --menus file            Use \"file\" to define menus\n")
             << _("  -N, --new session-name      Create a new session from the command line\n")
             << _("  -O, --no-hw-optimizations   Disable h/w specific optimizations\n")
+            << _("  -P, --no-connect-ports      Do not connect any ports at startup\n")
             << _("  -S, --sync                  Draw the gui synchronously \n")
 #ifdef WINDOWS_VST_SUPPORT
             << _("  -V, --novst                 Do not use VST support\n")
@@ -80,7 +83,7 @@ print_help (const char *execname)
 int
 ARDOUR_COMMAND_LINE::parse_opts (int argc, char *argv[])
 {
-       const char *optstring = "bc:C:dD:hk:E:m:N:nOp:PST:U:vV";
+       const char *optstring = "abc:C:dD:hk:E:m:N:nOp:PST:U:vV";
        const char *execname = strrchr (argv[0], '/');
 
        if (getenv ("ARDOUR_SAE")) {
@@ -97,10 +100,11 @@ ARDOUR_COMMAND_LINE::parse_opts (int argc, char *argv[])
        const struct option longopts[] = {
                { "version", 0, 0, 'v' },
                { "help", 0, 0, 'h' },
+               { "no-announcements", 0, 0, 'a' },
                { "bindings", 0, 0, 'b' },
                { "disable-plugins", 1, 0, 'd' },
                { "debug", 1, 0, 'D' },
-               { "show-splash", 0, 0, 'n' },
+               { "no-splash", 0, 0, 'n' },
                { "menus", 1, 0, 'm' },
                { "name", 1, 0, 'c' },
                { "novst", 0, 0, 'V' },
@@ -137,6 +141,10 @@ ARDOUR_COMMAND_LINE::parse_opts (int argc, char *argv[])
                        print_help (execname);
                        exit (0);
                        break;
+               case 'a':
+                       check_announcements = false;
+                       break;
+
                case 'b':
                        show_key_actions = true;
                        break;