aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-01-17 12:32:38 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2018-01-17 12:32:38 -0800
commit0fde60e467ba756ddaaae389f1969a826268dc5d (patch)
treeed9aabfca26a196e37079466835b49773e2be2c9 /toolsrc/src
parentc14f2b36e44526300f0ea7f828d09eefb77a3ad5 (diff)
downloadvcpkg-0fde60e467ba756ddaaae389f1969a826268dc5d.tar.gz
vcpkg-0fde60e467ba756ddaaae389f1969a826268dc5d.zip
Fix variable lifetime issue
Diffstat (limited to 'toolsrc/src')
-rw-r--r--toolsrc/src/vcpkg/export.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg/export.cpp b/toolsrc/src/vcpkg/export.cpp
index 66e6af5b6..d15df95d2 100644
--- a/toolsrc/src/vcpkg/export.cpp
+++ b/toolsrc/src/vcpkg/export.cpp
@@ -283,9 +283,13 @@ namespace vcpkg::Export
{OPTION_ZIP, "Export to a zip file"},
{OPTION_SEVEN_ZIP, "Export to a 7zip (.7z) file"},
}};
+
+ static const std::string EXPORT_SETTINGS_NUGET_ID_HELP_TEXT =
+ Strings::format("Specify the id for the exported NuGet package (overrides %s)", OPTION_OUTPUT);
+
static const std::array<CommandSetting, 8> EXPORT_SETTINGS = {{
{OPTION_OUTPUT, "Specify the output name (used to construct filename)"},
- {OPTION_NUGET_ID, "Specify the id for the exported NuGet package (overrides " + OPTION_OUTPUT + ")"},
+ {OPTION_NUGET_ID, EXPORT_SETTINGS_NUGET_ID_HELP_TEXT},
{OPTION_NUGET_VERSION, "Specify the version for the exported NuGet package"},
{OPTION_IFW_REPOSITORY_URL, "Specify the remote repository URL for the online installer"},
{OPTION_IFW_PACKAGES_DIR_PATH, "Specify the temporary directory path for the repacked packages"},