Mac v2 signing - Bug 1071134 - Fix command line help for updater. r=spohl

This commit is contained in:
Robert Strong 2014-09-29 11:52:44 -07:00
parent a06b945386
commit 53ad52e471

View File

@ -2227,19 +2227,21 @@ int NS_main(int argc, NS_tchar **argv)
InitProgressUI(&argc, &argv); InitProgressUI(&argc, &argv);
// To process an update the updater command line must at a minimum have the // To process an update the updater command line must at a minimum have the
// directory path containing the updater.mar file to process as the first argument // directory path containing the updater.mar file to process as the first
// and the directory to apply the update to as the second argument. When the // argument, the install directory as the second argument, and the directory
// updater is launched by another process the PID of the parent process should be // to apply the update to as the third argument. When the updater is launched
// provided in the optional third argument and the updater will wait on the parent // by another process the PID of the parent process should be provided in the
// process to exit if the value is non-zero and the process is present. This is // optional fourth argument and the updater will wait on the parent process to
// necessary due to not being able to update files that are in use on Windows. The // exit if the value is non-zero and the process is present. This is necessary
// optional fourth argument is the callback's working directory and the optional // due to not being able to update files that are in use on Windows. The
// fifth argument is the callback path. The callback is the application to launch // optional fifth argument is the callback's working directory and the
// after updating and it will be launched when these arguments are provided // optional sixth argument is the callback path. The callback is the
// whether the update was successful or not. All remaining arguments are optional // application to launch after updating and it will be launched when these
// and are passed to the callback when it is launched. // arguments are provided whether the update was successful or not. All
if (argc < 3) { // remaining arguments are optional and are passed to the callback when it is
fprintf(stderr, "Usage: updater update-dir apply-to-dir [wait-pid [callback-working-dir callback-path args...]]\n"); // launched.
if (argc < 4) {
fprintf(stderr, "Usage: updater patch-dir install-dir apply-to-dir [wait-pid [callback-working-dir callback-path args...]]\n");
return 1; return 1;
} }