Skip to content

Commit

Permalink
fix arg parsing for chat notification-settings command (#21986)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblum committed Jan 11, 2020
1 parent 34884c1 commit 27180c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/client/cmd_chat_notification_settings.go
@@ -1,6 +1,7 @@
package client

import (
"fmt"
"strconv"

"github.com/keybase/cli"
Expand Down Expand Up @@ -60,6 +61,9 @@ func (c *CmdChatSetNotificationSettings) Run() error {
}

func (c *CmdChatSetNotificationSettings) ParseArgv(ctx *cli.Context) (err error) {
if len(ctx.Args()) != 0 {
return fmt.Errorf("Command accepts no arguments")
}
c.settings.Settings = make(map[chat1.GlobalAppNotificationSetting]bool)
for _, setting := range chat1.GlobalAppNotificationSettingsSorted() {
flagName := setting.FlagName()
Expand Down

0 comments on commit 27180c6

Please sign in to comment.