Command flag behavior improvements (#1432)

* Forbid overlap of built-in and command-defined flag names 
* Allow interleaving built-in and command-defined flags on the command
line
* List abbreviated flag names first, matching the behavior of built-in
flags
This commit is contained in:
Jen Basch authored and GitHub committed 2026-02-20 12:00:18 -08:00
1 parent 08712e8b26
commit a5dc91f0a5
11 files changed
+146 -31

No files matched your search

@@ -98,7 +98,17 @@ class BaseOptions : OptionGroup() {
private val defaults = CliBaseOptions()
private val output =
arrayOf("json", "jsonnet", "pcf", "properties", "plist", "textproto", "xml", "yaml")
arrayOf(
"json",
"jsonnet",
"pcf",
"properties",
"plist",
"textproto",
"xml",
"yaml",
"pkl-binary",
)
val allowedModules: List<Pattern> by
option(