Skip to content

Commit

Permalink
fix flag config error
Browse files Browse the repository at this point in the history
  • Loading branch information
AppleGamer22 committed Jul 11, 2022
1 parent e5060ad commit d74e35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ var RootCommand = &cobra.Command{
func init() {
RootCommand.Flags().DurationVarP(&duration, "duration", "d", 0, "duration with units ns, us (or µs), ms, s, m, h")
RootCommand.Flags().IntVarP(&pid, "pid", "p", 0, "process ID")
RootCommand.MarkFlagsRequiredTogether("pid", "duration")
// RootCommand.MarkFlagsRequiredTogether("pid", "duration")
RootCommand.SetVersionTemplate("{{.Version}}\n")
}

0 comments on commit d74e35a

Please sign in to comment.