diff options
author | Florian Jung <flo@thinkpad.(none)> | 2011-02-08 15:55:59 +0100 |
---|---|---|
committer | Florian Jung <flo@thinkpad.(none)> | 2011-02-08 15:59:27 +0100 |
commit | df131ea4f913fea43c266517a154caa08ff9b088 (patch) | |
tree | d116e49c3fa97cd3ad2c0a9b4a132ccf7c12be00 /synth/cli.cpp | |
parent | 080ddd252d94b9304db3858bc3b7f79cf2f89f33 (diff) |
Updated program files are now reloaded automatically
Diffstat (limited to 'synth/cli.cpp')
-rw-r--r-- | synth/cli.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/synth/cli.cpp b/synth/cli.cpp index eb52c95..4d5cc2f 100644 --- a/synth/cli.cpp +++ b/synth/cli.cpp @@ -30,6 +30,8 @@ void parse_args(int argc, char** argv) {"xruns", required_argument, 0, 'x'}, {"dir", required_argument, 0, 'd'}, {"directory", required_argument, 0, 'd'}, + {"no-watch-files", no_argument, 0, 'w'}, + {"dont-watch-files", no_argument, 0, 'w'}, {"program", required_argument, 0, 'p'}, {"cleanup-interval", required_argument, 0, 'i'}, {"lfo0-freq", required_argument, 0, 400}, //FINDLFO @@ -59,7 +61,7 @@ void parse_args(int argc, char** argv) while (optind<argc) { int index=-1; - int result=getopt_long(argc,argv,"hVf:d:p:i:c:x:vqFam", long_options, &index); + int result=getopt_long(argc,argv,"hVf:d:p:i:c:x:vqFamw", long_options, &index); if (result==-1) break; switch (result) @@ -131,6 +133,8 @@ void parse_args(int argc, char** argv) else output_warning("WARNING: not a number in --interval option. ignoring it..."); break; + case 'w': watchfiles=false; + break; case 304: if (isfloat(optarg)) snh_freq_hz=atof(optarg); else |