Skip to content

Commit

Permalink
driver: Error if we are given extra arguments on build
Browse files Browse the repository at this point in the history
  • Loading branch information
Wallbraker committed Aug 15, 2020
1 parent 3fcbf3e commit b7a9498
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/battery/driver.volt
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,13 @@ public:
}
}

fn build(bargs: string[])
fn build(buildArgs: string[])
{
bool verbose;
getopt(ref bargs, "verbose", ref verbose);
getopt(ref buildArgs, "verbose", ref verbose);
if (buildArgs.length > 0) {
return abort("Extra arguments given to build!\n%s", buildArgs);
}

root: toml.Value;
if (!getTomlConfig(BatteryConfigFile, out root)) {
Expand Down

0 comments on commit b7a9498

Please sign in to comment.