aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-06-09 19:14:56 -0400
committerDrew DeVault <sir@cmpwn.com>2019-06-09 19:14:56 -0400
commita98824af758a14c725d2503868b64ede410883e7 (patch)
tree63a56f6c7d5c0ddca7c11be8720654210d31453c
parent57471a0e67feb37aff1ab5aeb3f2712ea327fa55 (diff)
Fix :new-account getopts
-rw-r--r--commands/new-account.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/new-account.go b/commands/new-account.go
index a98b597..9e70dec 100644
--- a/commands/new-account.go
+++ b/commands/new-account.go
@@ -12,7 +12,7 @@ func init() {
}
func CommandNewAccount(aerc *widgets.Aerc, args []string) error {
- opts, _, err := getopt.Getopts(args[1:], "t")
+ opts, _, err := getopt.Getopts(args, "t")
if err != nil {
return errors.New("Usage: new-account [-t]")
}