Mark instance as required parameter for diagnostics
@@ -46,5 +46,7 @@ func newDiagnosticsCollectCmd(fs afero.Fs) *cobra.Command {
cmd.Flags().StringVar(&instance, "instance", "", "The instance name.")
cmd.Flags().DurationVar(&logSince, "log-since", 0, "Only return logs newer than a relative duration like 5s, 2m, or 3h. Defaults to all logs.")
+ _ = cobra.MarkFlagRequired(cmd.Flags(), "instance")
+
return cmd
}
