summary refs log tree commit diff stats
path: root/commands/msg
diff options
context:
space:
mode:
authorClayton Craft <clayton@craftyguy.net>2019-06-08 11:57:56 -0700
committerDrew DeVault <sir@cmpwn.com>2019-06-09 15:50:50 -0400
commitf5a4d935ef26ee7e7c0e4cabd840a759c6b132bf (patch)
tree78e3924714f523fbffafa8f94ff173cd4fb7da71 /commands/msg
parent50f25e7c4deecebcd42a07263a3cd50432c6db15 (diff)
downloadaerc-f5a4d935ef26ee7e7c0e4cabd840a759c6b132bf.tar.gz
Update reply to use getopt posix optind format
This changes the handling of optind for the 'reply' command to match
recent changes to getopt.
Diffstat (limited to 'commands/msg')
-rw-r--r--commands/msg/reply.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/msg/reply.go b/commands/msg/reply.go
index a9ae5a1..51f6584 100644
--- a/commands/msg/reply.go
+++ b/commands/msg/reply.go
@@ -24,11 +24,11 @@ func init() {
 }
 
 func Reply(aerc *widgets.Aerc, args []string) error {
-	opts, optind, err := getopt.Getopts(args[1:], "aq")
+	opts, optind, err := getopt.Getopts(args, "aq")
 	if err != nil {
 		return err
 	}
-	if optind != len(args)-1 {
+	if optind != len(args) {
 		return errors.New("Usage: reply [-aq]")
 	}
 	var (
ik.com> 2016-03-26 23:59:59 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2016-03-27 17:43:41 -0700 2812' href='/akkartik/mu/commit/html/083scenario_screen_test.mu.html?h=hlt&id=a654e4ecace2d506d1b10f1dde2c287ebe84ef37'>a654e4ec ^
f5465e12 ^
dbe12410 ^
a654e4ec ^

672e3e50 ^

a654e4ec ^





672e3e50 ^

a654e4ec ^
672e3e50 ^

f5465e12 ^

65361948 ^
d009e158 ^
32b8fac2 ^
65361948 ^

f5465e12 ^

65361948 ^

672e3e50 ^
f5465e12 ^

65361948 ^
672e3e50 ^
d009e158 ^
32b8fac2 ^
672e3e50 ^
32b8fac2 ^
672e3e50 ^
32b8fac2 ^
65361948 ^

f5465e12 ^


65361948 ^

672e3e50 ^


a654e4ec ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65