Skip to content

Commit 239bacc

Browse files
committed
fix CLI parsing
1 parent 83a9cc5 commit 239bacc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

commands.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ var GlobalFlags = []cli.Flag{
2222
Usage: "git branch",
2323
EnvVar: "BUILDKITE_BRANCH,CIRCLE_BRANCH,TRAVIS_BRANCH",
2424
}),
25-
altsrc.NewBoolFlag(cli.BoolFlag{
26-
Name: "git-ref-commit",
27-
Usage: "use the commit as deployment reference instead of branch",
28-
}),
2925
altsrc.NewStringFlag(cli.StringFlag{
3026
Name: "git-origin",
3127
Usage: "URL of the repo",
3228
EnvVar: "BUILDKITE_REPO,CIRCLE_REPOSITORY_URL", // Travis doesn't have an equivalent
3329
}),
30+
cli.BoolFlag{
31+
Name: "git-ref-commit",
32+
Usage: "use the commit as deployment reference instead of branch",
33+
},
3434
cli.GenericFlag{
3535
Name: "github-token",
3636
Usage: "Github Personal access token to interact with the Github API",

0 commit comments

Comments
 (0)