From 4577e06d91d93b27a500d513231c4cd970f20823 Mon Sep 17 00:00:00 2001 From: Matthew Woehlke Date: Fri, 14 Feb 2025 14:46:34 -0500 Subject: cmExportCommand: Tag arguments that shouldn't be empty Tweak some of the argument parsing in cmExportCommand.cxx to use ArgumentParser::NonEmpty tags on named options that require a non-empty value. --- Source/cmExportCommand.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/cmExportCommand.cxx b/Source/cmExportCommand.cxx index 8e50c52..a90ec41 100644 --- a/Source/cmExportCommand.cxx +++ b/Source/cmExportCommand.cxx @@ -63,12 +63,12 @@ bool cmExportCommand(std::vector const& args, struct Arguments { - std::string ExportSetName; cm::optional>> Targets; - std::string Namespace; - std::string Filename; - std::string AndroidMKFile; - std::string CxxModulesDirectory; + ArgumentParser::NonEmpty ExportSetName; + ArgumentParser::NonEmpty Namespace; + ArgumentParser::NonEmpty Filename; + ArgumentParser::NonEmpty AndroidMKFile; + ArgumentParser::NonEmpty CxxModulesDirectory; bool Append = false; bool ExportOld = false; -- cgit v0.12