From 2786221def96e337edb969e074c439bdcf1c53d5 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 31 Mar 2021 14:35:13 +0200 Subject: [PATCH] shift_argi and shift_args <- add this before! --- commandline.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commandline.cpp b/commandline.cpp index e3c9bc3e..454c454e 100644 --- a/commandline.cpp +++ b/commandline.cpp @@ -87,6 +87,10 @@ EX namespace arg { EX const string& args() { return argument[pos]; } EX const char* argcs() { return args().c_str(); } EX int argi() { return atoi(argcs()); } + + EX int shift_argi() { shift(); return argi(); } + EX const string& shift_args() { shift(); return args(); } + EX unsigned arghex() { return strtoll(argcs(), NULL, 16); } EX ld argf() { try {