From: Daniel Karbach Date: Mon, 3 Aug 2015 16:24:07 +0000 (+0200) Subject: remove positional frames argument X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=291ff5699aa1a1dd0e8aff49543849085e883c16;p=blank.git remove positional frames argument -n now mandatory --- diff --git a/running b/running index 1684765..d4019d5 100644 --- a/running +++ b/running @@ -4,14 +4,14 @@ Arguments Runtime ------- -[-n] +-n terminate after frames -t terminate after milliseconds -[-n] -t - terminate after n frames, assume milliseconds pass each frame +if both n and t are given, terminate after n frames and +assume milliseconds pass each frame Application ----------- diff --git a/src/app/Runtime.cpp b/src/app/Runtime.cpp index 1dcf722..e5f74b4 100644 --- a/src/app/Runtime.cpp +++ b/src/app/Runtime.cpp @@ -111,9 +111,6 @@ void Runtime::ReadArgs(int argc, const char *const *argv) { } } } - } else if (isdigit(arg[0])) { - // positional number interpreted as -n - n = strtoul(arg, nullptr, 10); } else { cerr << "unable to interpret argument " << i << " (" << arg << ")" << endl;