lib/imap/backup/cli/local.rb in imap-backup-14.5.2 vs lib/imap/backup/cli/local.rb in imap-backup-14.6.0
- old
+ new
@@ -13,11 +13,11 @@
# Implements the CLI functions relating to local storage
class CLI::Local < Thor
include Thor::Actions
include CLI::Helpers
- desc "accounts", "List locally backed-up accounts"
+ desc "accounts [OPTIONS]", "List locally backed-up accounts"
config_option
format_option
quiet_option
verbose_option
# Lists configured accounts
@@ -32,11 +32,11 @@
names.each { |n| Kernel.puts n }
end
end
desc(
- "check",
+ "check [OPTIONS]",
"Check the integrity of backups for all accounts (or the selected account(s))"
)
method_option(
"delete_corrupt",
type: :boolean,
@@ -52,11 +52,11 @@
def check
non_logging_options = Imap::Backup::Logger.setup_logging(options)
Check.new(non_logging_options).run
end
- desc "folders EMAIL", "List backed up folders"
+ desc "folders EMAIL [OPTIONS]", "List backed up folders"
config_option
format_option
quiet_option
verbose_option
# Lists backed-up folders for an account
@@ -74,11 +74,11 @@
Kernel.puts %("#{f.name}")
end
end
end
- desc "list EMAIL FOLDER", "List emails in a folder"
+ desc "list EMAIL FOLDER [OPTIONS]", "List emails in a folder"
config_option
format_option
quiet_option
verbose_option
# Lists backed-up emails for an account folder
@@ -99,10 +99,10 @@
else
list_emails_as_text serializer
end
end
- desc "show EMAIL FOLDER UID[,UID]", "Show one or more emails"
+ desc "show EMAIL FOLDER UID[,UID] [OPTIONS]", "Show one or more emails"
long_desc <<~DESC
Prints out the requested emails.
If more than one UID is given, they are separated by a header indicating
the UID.
DESC