2013-12-01 23:55:24 +00:00
|
|
|
#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;
|
2013-12-06 02:32:12 +00:00
|
|
|
std::string finishCmd;
|
2014-01-05 15:47:12 +00:00
|
|
|
std::string finishDir;
|
2013-12-01 23:55:24 +00:00
|
|
|
PLATFORM_PID waitPid;
|
|
|
|
std::string logFile;
|
|
|
|
bool showVersion;
|
2014-01-04 23:06:55 +00:00
|
|
|
bool dryRun;
|
2013-12-01 23:55:24 +00:00
|
|
|
bool forceElevated;
|
|
|
|
bool autoClose;
|
|
|
|
};
|
|
|
|
|