25 #include "ardour/debug.h"
57 cout <<
_(
"Usage: ") << execname <<
" [OPTION]... [SESSION_NAME]\n\n"
58 <<
_(
" [SESSION_NAME] Name of session to load\n")
59 <<
_(
" -v, --version Show version information\n")
60 <<
_(
" -h, --help Print this message\n")
61 <<
_(
" -a, --no-announcements Do not contact website for announcements\n")
62 <<
_(
" -b, --bindings Print all possible keyboard binding names\n")
63 <<
_(
" -c, --name <name> Use a specific backend client name, default is ardour\n")
64 <<
_(
" -d, --disable-plugins Disable all plugins in an existing session\n")
65 <<
_(
" -D, --debug <options> Set debug flags. Use \"-D list\" to see available options\n")
66 <<
_(
" -n, --no-splash Do not show splash screen\n")
67 <<
_(
" -m, --menus file Use \"file\" to define menus\n")
68 <<
_(
" -N, --new session-name Create a new session from the command line\n")
69 <<
_(
" -O, --no-hw-optimizations Disable h/w specific optimizations\n")
70 <<
_(
" -P, --no-connect-ports Do not connect any ports at startup\n")
71 <<
_(
" -S, --sync Draw the gui synchronously \n")
72 #ifdef WINDOWS_VST_SUPPORT
73 <<
_(
" -V, --novst Do not use VST support\n")
75 <<
_(
" -E, --save <file> Load the specified session, save it to <file> and then quit\n")
76 <<
_(
" -C, --curvetest filename Curve algorithm debugger\n")
77 <<
_(
" -k, --keybindings filename Name of key bindings to load (default is ~/.ardour3/ardour.bindings)\n")
86 const char *optstring =
"abc:C:dD:hk:E:m:N:nOp:PST:U:vV";
87 const char *execname = strrchr (argv[0],
'/');
89 if (getenv (
"ARDOUR_SAE")) {
100 const struct option longopts[] = {
101 {
"version", 0, 0,
'v' },
102 {
"help", 0, 0,
'h' },
103 {
"no-announcements", 0, 0,
'a' },
104 {
"bindings", 0, 0,
'b' },
105 {
"disable-plugins", 0, 0,
'd' },
106 {
"debug", 1, 0,
'D' },
107 {
"no-splash", 0, 0,
'n' },
108 {
"menus", 1, 0,
'm' },
109 {
"name", 1, 0,
'c' },
110 {
"novst", 0, 0,
'V' },
111 {
"new", 1, 0,
'N' },
112 {
"no-hw-optimizations", 0, 0,
'O' },
113 {
"sync", 0, 0,
'S' },
114 {
"curvetest", 1, 0,
'C' },
115 {
"save", 1, 0,
'E' },
116 {
"uuid", 1, 0,
'U' },
117 {
"template", 1, 0,
'T' },
118 {
"no-connect-ports", 0, 0,
'P' },
122 int option_index = 0;
126 c =
getopt_long (argc, argv, optstring, longopts, &option_index);
196 #ifdef WINDOWS_VST_SUPPORT
228 cerr <<
"Illogical combination: you can either create a new session, or a load an existing session but not both!" << endl;
int32_t parse_opts(int argc, char *argv[])
static void set_disable_all_loaded_plugins(bool yn)
bool finder_invoked_ardour
int print_help(const char *execname)
std::string backend_session_uuid
__BEGIN_DECLS GETOPT_API int getopt_long(int nargc, char *const *nargv, const char *options, const struct option *long_options, int *idx)
std::string load_template
std::string keybindings_path
std::string backend_client_name
std::string immediate_save
LIBPBD_API int parse_debug_options(const char *str)