fixed quiet flag binding
@@ -230,7 +230,7 @@ func subRequest(ctx context.Context,
for _, o := range outs {
go o.Write(b, m)
}
- if !viper.GetBool("quiet") {
+ if !viper.GetBool("subscribe-quiet") {
buff := new(bytes.Buffer)
if viper.GetString("format") == "textproto" {
_, err = buff.Write(b)
@@ -394,7 +394,7 @@ func init() {
subscribeCmd.Flags().BoolP("suppress-redundant", "", false, "suppress redundant update if the subscribed value didn't not change")
subscribeCmd.Flags().StringP("heartbeat-interval", "", "0s", "heartbeat interval in case suppress-redundant is enabled")
subscribeCmd.Flags().StringSliceP("model", "", []string{""}, "subscribe request used model(s)")
- subscribeCmd.Flags().BoolP("quiet", "", false, "suppress stdout printing")
+ subscribeCmd.Flags().Bool("quiet", false, "suppress stdout printing")
//
viper.BindPFlag("subscribe-prefix", subscribeCmd.LocalFlags().Lookup("prefix"))
viper.BindPFlag("subscribe-path", subscribeCmd.LocalFlags().Lookup("path"))
