Browse Source

Accept --no-config option to inhibit loading default config file, even without specifying another config

Luke Dashjr 12 years ago
parent
commit
e9b33c465c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      miner.c

+ 3 - 0
miner.c

@@ -2581,6 +2581,9 @@ static struct opt_table opt_cmdline_table[] = {
 		     load_config, NULL, NULL,
 		     load_config, NULL, NULL,
 		     "Load a JSON-format configuration file\n"
 		     "Load a JSON-format configuration file\n"
 		     "See example.conf for an example configuration."),
 		     "See example.conf for an example configuration."),
+	OPT_WITHOUT_ARG("--no-config",
+	                opt_set_bool, &config_loaded,
+	                "Inhibit loading default config file"),
 	OPT_WITHOUT_ARG("--help|-h",
 	OPT_WITHOUT_ARG("--help|-h",
 			opt_verusage_and_exit, NULL,
 			opt_verusage_and_exit, NULL,
 			"Print this message"),
 			"Print this message"),