Skip to content

Commit

Permalink
Update required flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Shambugouda annigeri committed Aug 9, 2022
1 parent 59a3a43 commit 41b58ff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions kubectl-fdb/cmd/profile_analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,18 @@ kubectl fdb analyze-profile -c cluster-1 --start-time "01:01 20/07/2022 BST" --e
if err != nil {
log.Fatal(err)
}
err = cmd.MarkFlagRequired("start-time")
if err != nil {
log.Fatal(err)
}
err = cmd.MarkFlagRequired("end-time")
if err != nil {
log.Fatal(err)
}
err = cmd.MarkFlagRequired("template-name")
if err != nil {
log.Fatal(err)
}

o.configFlags.AddFlags(cmd.Flags())
return cmd
Expand Down

0 comments on commit 41b58ff

Please sign in to comment.