Fix :new-account getopts
This commit is contained in:
parent
57471a0e67
commit
a98824af75
|
@ -12,7 +12,7 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func CommandNewAccount(aerc *widgets.Aerc, args []string) error {
|
func CommandNewAccount(aerc *widgets.Aerc, args []string) error {
|
||||||
opts, _, err := getopt.Getopts(args[1:], "t")
|
opts, _, err := getopt.Getopts(args, "t")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.New("Usage: new-account [-t]")
|
return errors.New("Usage: new-account [-t]")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue