0dcf694c87
Preserve --dir parameter after updating Allow more than one copy of a command line parameter in MultiMC Linux runner script no longer changes current directory, which allows '--dir .' Fixed unit tests, removed the obsolete one (for some legacy updater command line params that were also removed) [fixes 63127704]
27 lines
481 B
C++
27 lines
481 B
C++
#pragma once
|
|
|
|
#include "UpdateInstaller.h"
|
|
|
|
/** Parses the command-line options to the updater binary. */
|
|
class UpdaterOptions
|
|
{
|
|
public:
|
|
UpdaterOptions();
|
|
|
|
void parse(int argc, char** argv);
|
|
|
|
UpdateInstaller::Mode mode;
|
|
std::string installDir;
|
|
std::string packageDir;
|
|
std::string scriptPath;
|
|
std::string finishCmd;
|
|
std::string finishDir;
|
|
PLATFORM_PID waitPid;
|
|
std::string logFile;
|
|
bool showVersion;
|
|
bool dryRun;
|
|
bool forceElevated;
|
|
bool autoClose;
|
|
};
|
|
|