]> git.localhorst.tv Git - blank.git/commitdiff
remove positional frames argument
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 3 Aug 2015 16:24:07 +0000 (18:24 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 3 Aug 2015 16:24:07 +0000 (18:24 +0200)
-n now mandatory

running
src/app/Runtime.cpp

diff --git a/running b/running
index 1684765071195c33501ceeb2cd2d7a696c23fecd..d4019d5675ad6fe0c890e00eba470a74a92b8977 100644 (file)
--- a/running
+++ b/running
@@ -4,14 +4,14 @@ Arguments
 Runtime
 -------
 
-[-n] <n>
+-n <n>
        terminate after <n> frames
 
 -t <t>
        terminate after <t> milliseconds
 
-[-n] <n> -t <t>
-       terminate after n frames, assume <t> milliseconds pass each frame
+if both n and t are given, terminate after n frames and
+assume <t> milliseconds pass each frame
 
 Application
 -----------
index 1dcf722f9e94e06db392822aabad9e6abb6d5782..e5f74b459ec14d38a7b589b81623d470056d1c8f 100644 (file)
@@ -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;