瀏覽代碼

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.
Matthew Woehlke 10 月之前
父節點
當前提交
4577e06d91
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      Source/cmExportCommand.cxx

+ 5 - 5
Source/cmExportCommand.cxx

@@ -63,12 +63,12 @@ bool cmExportCommand(std::vector<std::string> const& args,
 
   struct Arguments
   {
-    std::string ExportSetName;
     cm::optional<ArgumentParser::MaybeEmpty<std::vector<std::string>>> Targets;
-    std::string Namespace;
-    std::string Filename;
-    std::string AndroidMKFile;
-    std::string CxxModulesDirectory;
+    ArgumentParser::NonEmpty<std::string> ExportSetName;
+    ArgumentParser::NonEmpty<std::string> Namespace;
+    ArgumentParser::NonEmpty<std::string> Filename;
+    ArgumentParser::NonEmpty<std::string> AndroidMKFile;
+    ArgumentParser::NonEmpty<std::string> CxxModulesDirectory;
     bool Append = false;
     bool ExportOld = false;