71static int mop_up(
int argc,
char **argv,
int index,
struct StringArray *sa)
74 for (
int i = index; i < argc; i++, count++)
77 if ((argv[i][0] ==
'-') && (argv[i][1] !=
'\0'))
95 if ((argc < 1) || !argv || !cli)
111#if defined(BSD) || defined(__APPLE__)
118 while (rc && (argc > 1) && (optind < argc))
120 int opt = getopt(argc, argv,
"+:A:a:b:Cc:Dd:Ee:F:f:Gg:H:hi:l:m:nOpQ:RSs:TvyZz");
336 for (
int i = optind; i < argc; i++)
#define ARRAY_ADD(head, elem)
Add an element at the end of the array.
size_t buf_strcpy(struct Buffer *buf, const char *s)
Copy a string into a Buffer.
static int mop_up(int argc, char **argv, int index, struct StringArray *sa)
Eat multiple arguments.
int check_help_mode(const char *mode)
Check for help mode.
bool cli_parse(int argc, char **argv, struct CommandLine *cli)
Parse the Command Line.
#define mutt_warning(...)
Convenience wrapper for the library headers.
bool mutt_istr_equal(const char *a, const char *b)
Compare two strings, ignoring case.
char * mutt_str_dup(const char *str)
Copy a string, safely.
@ HM_SEND
Help about sending email options.
@ HM_ALL
Help about all options.
@ HM_HELP
Help about help.
@ HM_INFO
Help about info options.
@ HM_TUI
Help about starting the tui options.
@ HM_SHARED
Help about shared config options.
bool version
-v Print version
bool license
-vv Print license
enum HelpMode mode
Display detailed help.
bool is_set
This struct has been used.
bool show_help
-O Show one-liner help
bool is_set
This struct has been used.
struct StringArray queries
-Q Query a config option
struct StringArray alias_queries
-A Lookup an alias
bool dump_config
-D Dump the config
bool dump_changed
-DD Dump the changed config
bool hide_sensitive
-S Hide sensitive config
struct Buffer draft_file
-H Use this draft file
bool is_set
This struct has been used.
struct Buffer include_file
-i Use this include file
struct StringArray cc_list
-c Add a Cc:
struct StringArray attach
-a Attach a file
bool use_crypto
-C Use CLI crypto
bool edit_infile
-E Edit the draft/include
struct StringArray bcc_list
-b Add a Bcc:
struct StringArray addresses
Send to these addresses.
struct Buffer subject
-s Use this Subject:
struct Buffer log_level
-d Debug log level
struct Buffer log_file
-l Debug log file
struct StringArray commands
-e Run these commands
bool is_set
This struct has been used.
bool disable_system
-n Don't read the system config file
struct StringArray user_files
-F Use these user config files
struct Buffer mbox_type
-m Set the default Mailbox type
bool read_only
-R Open Mailbox read-only
bool start_any_mail
-z Check for Any Mail
bool start_nntp
-G Open an NNTP Mailbox
struct Buffer nntp_server
-g Open this NNTP Mailbox
bool is_set
This struct has been used.
struct Buffer folder
-f Open this Mailbox
bool start_postponed
-p Open Postponed emails
bool start_new_mail
-Z Check for New Mail
bool start_browser
-y Open the Mailbox Browser
struct CliSend send
Send Mode command line options.
struct CliShared shared
Shared command line options.
struct CliHelp help
Help Mode command line options.
struct CliInfo info
Info Mode command line options.
struct CliTui tui
Tui Mode command line options.