From 92773706b946533b07de9ade7be28e307954ae38 Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Mon, 9 Nov 2020 17:17:04 -0500 Subject: don't attempt to parse the command line for launch, it fails in all sorts of ways don't try to time stuff before logging is initialized, an exception before initLogging() will crash because ~TimeThis() tries to log --- src/commandline.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/commandline.h') diff --git a/src/commandline.h b/src/commandline.h index baa0bfb9..09c1bb8e 100644 --- a/src/commandline.h +++ b/src/commandline.h @@ -45,10 +45,10 @@ public: // po::positional_options_description positional() const; - // whether the command allows for unregistered options; this is only used for - // the old `launch` command and shouldn't be used anywhere else + // when this returns true, the command line is not parsed at all and doRun() + // is expected to use untouched() // - virtual bool allow_unregistered() const; + virtual bool legacy() const; // runs this command, eventually calls doRun() // @@ -136,7 +136,7 @@ protected: class LaunchCommand : public Command { public: - bool allow_unregistered() const override; + bool legacy() const override; protected: Meta meta() const override; -- cgit v1.3.1