From 291ff5699aa1a1dd0e8aff49543849085e883c16 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Mon, 3 Aug 2015 18:24:07 +0200 Subject: [PATCH] remove positional frames argument -n now mandatory --- running | 6 +++--- src/app/Runtime.cpp | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) 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; -- 2.39.2