mirror of
https://github.com/apple/pkl.git
synced 2026-04-09 18:33:40 +02:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user