From 7f49f7dbda5a98f6bcea90ba18c5c98a58613fa1 Mon Sep 17 00:00:00 2001 From: Firefly35 Date: Fri, 24 Sep 2021 11:19:36 +0200 Subject: [PATCH] fix: set --invert-remote-order as a flag instead of an option --- src/CmdOptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CmdOptions.cpp b/src/CmdOptions.cpp index a92f1ac..5a55950 100755 --- a/src/CmdOptions.cpp +++ b/src/CmdOptions.cpp @@ -184,7 +184,7 @@ CmdOptions::CmdOptions() CLI::App * installCommand = m_cliApp.add_subcommand("install", "install dependencies for a package from its packagedependencies file(s)"); installCommand->add_option("--alternate-remote-type,-l", m_altRepoType, "alternate remote type: " + getOptionString("--alternate-remote-type")); installCommand->add_option("--alternate-remote-url,-u", m_altRepoUrl, "alternate remote url to use when the declared remote fails to provide a dependency"); - installCommand->add_option("--invert-remote-order", m_invertRepositoryOrder, "invert alternate and base remote search order : alternate remote is searched before packagedependencies declared remote", true); + installCommand->add_flag("--invert-remote-order", m_invertRepositoryOrder, "invert alternate and base remote search order : alternate remote is searched before packagedependencies declared remote"); installCommand->add_option("--apiKey,-k", m_apiKey, "Artifactory api key"); installCommand->add_option("file", m_dependenciesFile, "Remaken dependencies files", true); installCommand->add_option("--conan_profile", m_conanProfile, "force conan profile name to use (overrides detected profile)",true);