Skip to content

Commit

Permalink
logging command
Browse files Browse the repository at this point in the history
  • Loading branch information
twobit committed Dec 16, 2010
1 parent 748ccfe commit 9a622a5
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,24 @@ class Synth {
void main(string[] args) {
disable;//TODO: fix this!!!!

if(args.length < 2) {
writefln("usage: %s filename", args[0]);
string filename;
bool logging = false;

foreach(a; args[1 .. $]) {
if(a == "-l") logging = true;
else filename = a;
}

if(!filename) {
writefln("usage: %s [-l] filename", args[0]);
return;
}
auto synth = new Synth(args[1], true);

auto synth = new Synth(filename, logging);
readln;
delete synth;
}




0 comments on commit 9a622a5

Please sign in to comment.