chore: Mark filename flag as required
@@ -50,11 +50,13 @@ func NewTrialCommand(o *TrialOptions) *cobra.Command {
}
cmd.Flags().StringVarP(&o.Filename, "filename", "f", o.Filename, "File that contains the experiment to generate trials for.")
+
cmd.Flags().StringToStringVarP(&o.Assignments, "assign", "A", nil, "Assign an explicit value to a parameter.")
cmd.Flags().BoolVar(&o.AllowInteractive, "interactive", o.AllowInteractive, "Allow interactive prompts for unspecified parameter assignments.")
cmd.Flags().StringVar(&o.DefaultBehavior, "default", "", "Select the behavior for default values; one of: none|min|max|rand.")
_ = cmd.MarkFlagFilename("filename", "yml", "yaml")
+ _ = cmd.MarkFlagRequired("filename")
commander.SetKubePrinter(&o.Printer, cmd)
commander.ExitOnError(cmd)
