mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-10-03 15:29:29 +00:00
Undeprecate the -u option for check-update
Since check-update may need to download content in the future, keep the -u option around. Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
+2
-3
@@ -36,7 +36,7 @@ static void print_help(const char *name)
|
||||
printf(" swupd %s [options] bundlename\n\n", basename((char *)name));
|
||||
printf("Help Options:\n");
|
||||
printf(" -h, --help Show help options\n");
|
||||
printf(" -u, --url=[URL] (deprecated) RFC-3986 encoded url for version string and content file downloads\n");
|
||||
printf(" -u, --url=[URL] RFC-3986 encoded url for version string and content file downloads\n");
|
||||
printf(" -v, --versionurl=[URL] RFC-3986 encoded url for version string download\n");
|
||||
printf(" -P, --port=[port #] Port number to connect to at the url for version string and content file downloads\n");
|
||||
printf(" -F, --format=[staging,1,2,etc.] the format suffix for version file downloads\n");
|
||||
@@ -67,12 +67,11 @@ static bool parse_options(int argc, char **argv)
|
||||
print_help(argv[0]);
|
||||
exit(EXIT_SUCCESS);
|
||||
case 'u':
|
||||
// TODO: This check-update option is deprecated in favor of -v.
|
||||
// Remove the option after a grace period.
|
||||
if (!optarg) {
|
||||
printf("error: invalid --url argument\n\n");
|
||||
goto err;
|
||||
}
|
||||
set_content_url(optarg);
|
||||
set_version_url(optarg);
|
||||
break;
|
||||
case 'v':
|
||||
|
||||
Reference in New Issue
Block a user