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