8000 Add `--update-info` flag · AppImageCommunity/AppImageUpdate@6fc0bfe · GitHub
[go: up one dir, main page]

Skip to content

Commit 6fc0bfe

Browse files
mgord9518TheAssassin
authored andcommitted
Add --update-info flag
Completes #209
1 parent f2a6873 commit 6fc0bfe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cli/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ int main(const int argc, const char** argv) {
2727
"other non-zero code in case of errors."},
2828
{"overwriteOldFile", {"-O", "--overwrite"}, "Overwrite existing file. If not specified, a new file will be created, and the old one will remain untouched."},
2929
{"removeOldFile", {"-r", "--remove-old"}, "Remove old AppImage after successful update."},
30+
{"updateInfo", {"-u", "--update-info"}, "Manually override update information in the AppImage.", 1},
3031
{"selfUpdate", {"--self-update"}, "Update this AppImage."},
3132
}};
3233

@@ -106,6 +107,10 @@ int main(const int argc, const char** argv) {
106107

107108
Updater updater(pathToAppImage.value(), args["overwriteOldFile"]);
108109

110+
if (args["updateInfo"]) {
111+
updater.setUpdateInformation(args["updateInfo"]);
112+
}
113+
109114
// if the user just wants a description of the AppImage, parse the AppImage, print the description and exit
110115
if (args["describe"]) {
111116
string description;

0 commit comments

Comments
 (0)
0