diff options
Diffstat (limited to 'src/support/command-line.h')
-rw-r--r-- | src/support/command-line.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/support/command-line.h b/src/support/command-line.h index 53bdbff28..99d98eec9 100644 --- a/src/support/command-line.h +++ b/src/support/command-line.h @@ -34,7 +34,19 @@ namespace wasm { class Options { public: using Action = std::function<void(Options*, const std::string&)>; - enum class Arguments { Zero, One, N, Optional }; + + enum class Arguments { + // No arguments. + Zero, + // One argument, in the form --flag A or --flag=A + One, + // Multiple arguments, in the form --flag A B C + N, + // An optional single argument, in the form --flag=A (we disallow --flag A + // as that would be ambiguous regarding whether A is another flag, or an + // argument to us). + Optional + }; bool debug; std::map<std::string, std::string> extra; |