================
@@ -98,7 +98,23 @@ class HelpTextVariant<list<OptionVisibility> visibilities, 
string text> {
   string Text = text;
 }
 
-class Option<list<string> prefixes, string name, OptionKind kind> {
+// Base class for TopLevelCommand and Subcommands.
+class Command<string name> { string Name = name; }
+
+// Class definition for positional subcommands.
+class Subcommand<string name, string helpText, string usage = "">
+    : Command<name> {
+  string HelpText = helpText;
+  string Usage = usage; //TODO(prabhuk): This could be part of another 
subclass of subcommand to make passing usage string optional.
----------------
PiJoules wrote:

`// TODO` (space)

https://github.com/llvm/llvm-project/pull/155026
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to