From 54a5dd8a8a00c53d3a40aebc240a6b27e8eecb65 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Mon, 28 Mar 2016 10:29:52 -0700 Subject: [PATCH] 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 --- src/check_update.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/check_update.c b/src/check_update.c index 238a26a7..ce370ffb 100644 --- a/src/check_update.c +++ b/src/check_update.c @@ -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':