" -L MODULE Load the specified plugin module with the specified argument\n"
" -F FILE Run the specified script\n"
" -C Open a command line on the running TTY\n"
+ " -n Don't load configuration file ("PA_DEFAULT_CONFIG_FILE")\n"
" -D Daemonize after loading the modules\n"
" -f Dont quit when the startup fails\n"
" -v Verbose startup\n"
char c;
struct pa_cmdline *cmdline = NULL;
struct pa_strbuf *buf = NULL;
+ int no_default_config_file = 0;
assert(argc && argv);
cmdline = pa_xmalloc(sizeof(struct pa_cmdline));
buf = pa_strbuf_new();
assert(buf);
- while ((c = getopt(argc, argv, "L:F:CDhfvrRV")) != -1) {
+ while ((c = getopt(argc, argv, "L:F:CDhfvrRVn")) != -1) {
switch (c) {
case 'L':
pa_strbuf_printf(buf, "load %s\n", optarg);
case 'V':
cmdline->version = 1;
break;
+ case 'n':
+ no_default_config_file =1;
+ break;
default:
goto fail;
}
}
+ if (!no_default_config_file)
+ pa_strbuf_puts(buf, ".include "PA_DEFAULT_CONFIG_FILE"\n");
+
+
cmdline->cli_commands = pa_strbuf_tostring_free(buf);
return cmdline;