diff options
author | Andrew <forkk@forkk.net> | 2013-12-05 20:32:12 -0600 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-12-05 20:32:52 -0600 |
commit | e90f1a27569ac6b9e9782646c9de92fc9534b1d2 (patch) | |
tree | d04e408ed599a6f33bdcd341dbc99cb6d1de5cb7 /mmc_updater/src/UpdaterOptions.cpp | |
parent | 48ec8e67b8cff63cd2d0e08c17e7bb576b4e07a7 (diff) | |
download | MultiMC-e90f1a27569ac6b9e9782646c9de92fc9534b1d2.tar MultiMC-e90f1a27569ac6b9e9782646c9de92fc9534b1d2.tar.gz MultiMC-e90f1a27569ac6b9e9782646c9de92fc9534b1d2.tar.lz MultiMC-e90f1a27569ac6b9e9782646c9de92fc9534b1d2.tar.xz MultiMC-e90f1a27569ac6b9e9782646c9de92fc9534b1d2.zip |
Implement update installer
Diffstat (limited to 'mmc_updater/src/UpdaterOptions.cpp')
-rw-r--r-- | mmc_updater/src/UpdaterOptions.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mmc_updater/src/UpdaterOptions.cpp b/mmc_updater/src/UpdaterOptions.cpp index 1ea820d2..c8f76f6e 100644 --- a/mmc_updater/src/UpdaterOptions.cpp +++ b/mmc_updater/src/UpdaterOptions.cpp @@ -111,6 +111,7 @@ void UpdaterOptions::parse(int argc, char** argv) AnyOption parser; parser.setOption("install-dir"); parser.setOption("package-dir"); + parser.setOption("finish-cmd"); parser.setOption("script"); parser.setOption("wait"); parser.setOption("mode"); @@ -140,6 +141,10 @@ void UpdaterOptions::parse(int argc, char** argv) { waitPid = static_cast<PLATFORM_PID>(atoll(parser.getValue("wait"))); } + if (parser.getValue("finish-cmd")) + { + finishCmd = parser.getValue("finish-cmd"); + } showVersion = parser.getFlag("version"); forceElevated = parser.getFlag("force-elevated"); |