Skip to content

Commit

Permalink
fix: top level argument flag -D
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Dec 15, 2023
1 parent 0a00b10 commit 88af86c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.1
0.7.2
4 changes: 2 additions & 2 deletions cmd/kcl/commands/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ func appendLangFlags(o *options.RunOptions, flags *pflag.FlagSet) {
}

func appendRunnerFlags(o *options.RunOptions, flags *pflag.FlagSet) {
flags.StringSliceVarP(&o.Arguments, "argument", "D", []string{},
"Specify the top-level argument")
flags.StringArrayVarP(&o.Arguments, "argument", "D", []string{},
"Specify the top-level argument")
flags.StringSliceVarP(&o.Settings, "setting", "Y", []string{},
"Specify the command line setting files")
flags.StringSliceVarP(&o.Overrides, "overrides", "O", []string{},
Expand Down
3 changes: 2 additions & 1 deletion pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ func getVersion(version string) string {

// All the kpm versions.
const (
VersionTypeLatest = Version_0_7_1
VersionTypeLatest = Version_0_7_2

Version_0_7_2 VersionType = "0.7.2"
Version_0_7_1 VersionType = "0.7.1"
Version_0_7_0 VersionType = "0.7.0"
Version_0_7_0_beta_2 VersionType = "0.7.0-beta.2"
Expand Down

0 comments on commit 88af86c

Please sign in to comment.