Skip to content

Commit

Permalink
remove flags in use line
Browse files Browse the repository at this point in the history
  • Loading branch information
IrineSistiana committed Jun 27, 2022
1 parent cb9e20a commit 0d7323b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func newConvCmd() *cobra.Command {
mlog.S().Fatal(err)
}
},
DisableFlagsInUseLine: true,
}
c.Flags().StringVarP(&in, "in", "i", "", "input config")
c.Flags().StringVarP(&out, "out", "o", "", "output config")
Expand All @@ -61,6 +62,7 @@ func newGenCmd() *cobra.Command {
mlog.S().Fatal(err)
}
},
DisableFlagsInUseLine: true,
}
return c
}
Expand Down
3 changes: 3 additions & 0 deletions tools/probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func newIdleTimeoutCmd() *cobra.Command {
mlog.S().Fatal(err)
}
},
DisableFlagsInUseLine: true,
}
}

Expand All @@ -55,6 +56,7 @@ func newConnReuseCmd() *cobra.Command {
mlog.S().Fatal(err)
}
},
DisableFlagsInUseLine: true,
}
}

Expand All @@ -68,6 +70,7 @@ func newPipelineCmd() *cobra.Command {
mlog.S().Fatal(err)
}
},
DisableFlagsInUseLine: true,
}
}

Expand Down
2 changes: 2 additions & 0 deletions tools/v2dat.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func newUnpackDomainCmd() *cobra.Command {
mlog.S().Fatal(err)
}
},
DisableFlagsInUseLine: true,
}
c.Flags().StringVarP(&ourDir, "out", "o", "", "output dir")
return c
Expand All @@ -60,6 +61,7 @@ func newUnpackIPCmd() *cobra.Command {
mlog.S().Fatal(err)
}
},
DisableFlagsInUseLine: true,
}
c.Flags().StringVarP(&ourDir, "out", "o", "", "output dir")
return c
Expand Down

0 comments on commit 0d7323b

Please sign in to comment.