Skip to content

Commit

Permalink
Adds missing "startingCarbonicity" command line option
Browse files Browse the repository at this point in the history
  • Loading branch information
argiopetech committed Jan 7, 2017
1 parent 6b894fb commit 324669b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions base9/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ void Settings::fromCLI (int argc, char **argv)
{"startingAv", required_argument, 0, 0xC6},
{"startingY", required_argument, 0, 0xC5},
{"startinglogAge", required_argument, 0, 0xC4},
{"startingCarbonicity", required_argument, 0, 0xC3},
{0, 0, 0, 0}
};

Expand Down Expand Up @@ -452,6 +453,10 @@ void Settings::fromCLI (int argc, char **argv)
istringstream (string (optarg)) >> cluster.starting.logAge;
break;

case 0xC3:
istringstream (string (optarg)) >> cluster.starting.carbonicity;
break;

case '?':
// getopt_long already printed an error message.
printUsage ();
Expand Down

0 comments on commit 324669b

Please sign in to comment.