summaryrefslogtreecommitdiff
path: root/src/commandline.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-11-09 17:17:04 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2020-11-09 17:17:04 -0500
commit92773706b946533b07de9ade7be28e307954ae38 (patch)
treef6adbdc250e2cbafd8d391b0aa19308976af5014 /src/commandline.h
parentfef8543a58b4226242ce26c4c8876abaa64394cb (diff)
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
Diffstat (limited to 'src/commandline.h')
-rw-r--r--src/commandline.h8
1 files changed, 4 insertions, 4 deletions
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;