Commit c98b8983 authored by Anatoli Babenia's avatar Anatoli Babenia 🛠️ Committed by Steve Azzopardi
Browse files

create: Show which flags are required in --help output

parent 3298329c
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -34,6 +34,12 @@ func Create(log logrus.FieldLogger, httpClientFn httpClientFn) *cli.Command {
		},
		Subcommands: nil,
		Flags: []cli.Flag{
			&cli.StringFlag{
				Name:     flags.TagName,
				Usage:    "(required) The tag the release will be created from",
				Required: true,
				EnvVars:  []string{"CI_COMMIT_TAG"},
			},
			&cli.StringFlag{
				Name:     flags.Name,
				Usage:    "The release name",
@@ -44,12 +50,6 @@ func Create(log logrus.FieldLogger, httpClientFn httpClientFn) *cli.Command {
				Usage:    "The description of the release; you can use Markdown. A file can be used to read the description contents, must exist inside the working directory; if it contains any whitespace, it will be treated as a string",
				Required: false,
			},
			&cli.StringFlag{
				Name:     flags.TagName,
				Usage:    "The tag the release will be created from",
				Required: true,
				EnvVars:  []string{"CI_COMMIT_TAG"},
			},
			&cli.StringFlag{
				Name:     flags.TagMessage,
				Usage:    "Message to use if creating a new annotated tag",