Skip to content

Commit

Permalink
fix: make e2e test happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
zong-zhe committed Aug 24, 2023
1 parent c0aa041 commit acdaade
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
10 changes: 5 additions & 5 deletions pkg/cmd/cmd_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,35 +40,35 @@ func NewRunCmd() *cli.Command {
&cli.StringSliceFlag{
Name: FLAG_SETTING,
Aliases: []string{"Y"},
Usage: "Specify the input setting file",
Usage: "specify the input setting file",
},

// KCL arg: --argument, -D
&cli.StringSliceFlag{
Name: FLAG_ARGUMENT,
Aliases: []string{"D"},
Usage: "Specify the top-level argument",
Usage: "specify the top-level argument",
},

// KCL arg: --overrides, -O
&cli.StringSliceFlag{
Name: FLAG_OVERRIDES,
Aliases: []string{"O"},
Usage: "Specify the configuration override path and value",
Usage: "specify the configuration override path and value",
},

// KCL arg: --disable_none, -n
&cli.BoolFlag{
Name: FLAG_DISABLE_NONE,
Aliases: []string{"n"},
Usage: "Disable dumping None values",
Usage: "disable dumping None values",
},

// KCL arg: --sort_keys -k
&cli.BoolFlag{
Name: FLAG_SORT_KEYS,
Aliases: []string{"k"},
Usage: "Sort result keys",
Usage: "sort result keys",
},
},
Action: func(c *cli.Context) error {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ OPTIONS:
--input value [ --input value ] a kcl file as the compile entry file
--tag value the tag for oci artifact
--vendor run in vendor mode (default: false)
--kcl_args value Arguments for kcl
--setting value, -Y value [ --setting value, -Y value ] [Deprecated] Specify the input setting file
--argument value, -D value [ --argument value, -D value ] Specify the top-level argument
--overrides value, -O value [ --overrides value, -O value ] Specify the configuration override path and value
--disable_none, -n Disable dumping None values (default: false)
--sort_keys, -k Sort result keys (default: false)
--setting value, -Y value [ --setting value, -Y value ] specify the input setting file
--argument value, -D value [ --argument value, -D value ] specify the top-level argument
--overrides value, -O value [ --overrides value, -O value ] specify the configuration override path and value
--disable_none, -n disable dumping None values (default: false)
--sort_keys, -k sort result keys (default: false)
--help, -h show help

0 comments on commit acdaade

Please sign in to comment.