aboutsummaryrefslogtreecommitdiffstats
path: root/commands/compose
diff options
context:
space:
mode:
Diffstat (limited to 'commands/compose')
-rw-r--r--commands/compose/attach.go6
-rw-r--r--commands/compose/cc-bcc.go2
-rw-r--r--commands/compose/detach.go2
-rw-r--r--commands/compose/edit.go4
-rw-r--r--commands/compose/header.go6
-rw-r--r--commands/compose/multipart.go6
-rw-r--r--commands/compose/postpone.go2
-rw-r--r--commands/compose/send.go8
-rw-r--r--commands/compose/switch.go6
9 files changed, 21 insertions, 21 deletions
diff --git a/commands/compose/attach.go b/commands/compose/attach.go
index f811f5a8..14739127 100644
--- a/commands/compose/attach.go
+++ b/commands/compose/attach.go
@@ -21,9 +21,9 @@ import (
)
type Attach struct {
- Menu bool `opt:"-m"`
- Name string `opt:"-r"`
- Path string `opt:"path" required:"false" complete:"CompletePath"`
+ Menu bool `opt:"-m" desc:"Select files from file-picker-cmd."`
+ Name string `opt:"-r" desc:"<name> <cmd...>: Generate attachment from command output."`
+ Path string `opt:"path" required:"false" complete:"CompletePath" desc:"Attachment file path."`
Args string `opt:"..." required:"false"`
}
diff --git a/commands/compose/cc-bcc.go b/commands/compose/cc-bcc.go
index a3c1c188..ec47afe6 100644
--- a/commands/compose/cc-bcc.go
+++ b/commands/compose/cc-bcc.go
@@ -6,7 +6,7 @@ import (
)
type CC struct {
- Recipients string `opt:"recipients" complete:"CompleteAddress"`
+ Recipients string `opt:"recipients" complete:"CompleteAddress" desc:"Recipient from address book."`
}
func init() {
diff --git a/commands/compose/detach.go b/commands/compose/detach.go
index ddf2e24f..5420d382 100644
--- a/commands/compose/detach.go
+++ b/commands/compose/detach.go
@@ -11,7 +11,7 @@ import (
)
type Detach struct {
- Path string `opt:"path" required:"false" complete:"CompletePath"`
+ Path string `opt:"path" required:"false" complete:"CompletePath" desc:"Attachment file path."`
}
func init() {
diff --git a/commands/compose/edit.go b/commands/compose/edit.go
index f02848b7..117afe32 100644
--- a/commands/compose/edit.go
+++ b/commands/compose/edit.go
@@ -9,8 +9,8 @@ import (
)
type Edit struct {
- Edit bool `opt:"-e"`
- NoEdit bool `opt:"-E"`
+ Edit bool `opt:"-e" desc:"Force [compose].edit-headers = true."`
+ NoEdit bool `opt:"-E" desc:"Force [compose].edit-headers = false."`
}
func init() {
diff --git a/commands/compose/header.go b/commands/compose/header.go
index 64c1c37d..fa60f59f 100644
--- a/commands/compose/header.go
+++ b/commands/compose/header.go
@@ -9,9 +9,9 @@ import (
)
type Header struct {
- Force bool `opt:"-f"`
- Remove bool `opt:"-d"`
- Name string `opt:"name" complete:"CompleteHeaders"`
+ Force bool `opt:"-f" desc:"Overwrite any existing header."`
+ Remove bool `opt:"-d" desc:"Remove the header instead of adding it."`
+ Name string `opt:"name" complete:"CompleteHeaders" desc:"Header name."`
Value string `opt:"..." required:"false"`
}
diff --git a/commands/compose/multipart.go b/commands/compose/multipart.go
index 87f4d030..34ab3af6 100644
--- a/commands/compose/multipart.go
+++ b/commands/compose/multipart.go
@@ -9,8 +9,8 @@ import (
)
type Multipart struct {
- Remove bool `opt:"-d"`
- Mime string `opt:"mime" metavar:"<mime/type>" complete:"CompleteMime"`
+ Remove bool `opt:"-d" desc:"Remove the specified mime/type."`
+ Mime string `opt:"mime" metavar:"<mime/type>" complete:"CompleteMime" desc:"MIME/type name."`
}
func init() {
@@ -18,7 +18,7 @@ func init() {
}
func (Multipart) Description() string {
- return "Convert the message to multipart with the given mime-type part."
+ return "Convert the message to multipart with the given mime/type part."
}
func (Multipart) Context() commands.CommandContext {
diff --git a/commands/compose/postpone.go b/commands/compose/postpone.go
index 3dd55554..7aba6b18 100644
--- a/commands/compose/postpone.go
+++ b/commands/compose/postpone.go
@@ -14,7 +14,7 @@ import (
)
type Postpone struct {
- Folder string `opt:"-t" complete:"CompleteFolder"`
+ Folder string `opt:"-t" complete:"CompleteFolder" desc:"Override the target folder."`
}
func init() {
diff --git a/commands/compose/send.go b/commands/compose/send.go
index 0d184bcf..73e3e13a 100644
--- a/commands/compose/send.go
+++ b/commands/compose/send.go
@@ -24,11 +24,11 @@ import (
)
type Send struct {
- Archive string `opt:"-a" action:"ParseArchive" metavar:"flat|year|month" complete:"CompleteArchive"`
- CopyTo string `opt:"-t" complete:"CompleteFolders"`
+ Archive string `opt:"-a" action:"ParseArchive" metavar:"flat|year|month" complete:"CompleteArchive" desc:"Archive the message being replied to."`
+ CopyTo string `opt:"-t" complete:"CompleteFolders" desc:"Override the Copy-To folder."`
- CopyToReplied bool `opt:"-r"`
- NoCopyToReplied bool `opt:"-R"`
+ CopyToReplied bool `opt:"-r" desc:"Save sent message to current folder."`
+ NoCopyToReplied bool `opt:"-R" desc:"Do not save sent message to current folder."`
}
func init() {
diff --git a/commands/compose/switch.go b/commands/compose/switch.go
index 4bcfc136..55dc86e2 100644
--- a/commands/compose/switch.go
+++ b/commands/compose/switch.go
@@ -12,9 +12,9 @@ type AccountSwitcher interface {
}
type SwitchAccount struct {
- Next bool `opt:"-n"`
- Prev bool `opt:"-p"`
- Account string `opt:"account" required:"false" complete:"CompleteAccount"`
+ Prev bool `opt:"-p" desc:"Switch to previous account."`
+ Next bool `opt:"-n" desc:"Switch to next account."`
+ Account string `opt:"account" required:"false" complete:"CompleteAccount" desc:"Account name."`
}
func init() {