38#ifndef WXM_COMMANDLINEOPTIONS_H
39#define WXM_COMMANDLINEOPTIONS_H
44namespace wxm::cmdline {
75 Option{Kind::Switch,
"v",
"version",
"Output the version info."},
76 Option{Kind::Switch,
"h",
"help",
"Show this help message.", {},
77 Complete::Nothing,
true},
78 Option{Kind::Option,
"o",
"open",
"Open a file.",
"file",
80 Option{Kind::Switch,
"e",
"eval",
"Evaluate the file after opening it."},
81 Option{Kind::Switch,
"d",
"diff",
82 "Compare 2 or 3 files side-by-side using the Diff viewer."},
83 Option{Kind::Switch,
"",
"single_process",
84 "Open all worksheets from within the same process."},
85 Option{Kind::Switch,
"",
"single_thread",
86 "Run all background tasks from within the main thread."},
87 Option{Kind::Switch,
"b",
"batch",
88 "Run the file and exit afterwards. Halts on questions and stops on "
90 Option{Kind::Switch,
"",
"logtostderr",
91 "Log all \"debug messages\" sidebar messages to stderr, too."},
92 Option{Kind::Switch,
"",
"debug",
"Enable costly debug checks."},
93 Option{Kind::Switch,
"",
"pipe",
"Pipe messages from Maxima to stderr."},
94 Option{Kind::Switch,
"",
"exit-on-error",
95 "Close the program on any Maxima error."},
96 Option{Kind::Option,
"",
"language",
97 "Use this language for the user interface instead of the configured "
98 "one, for example de or pt_BR. The setting is not saved.",
100 Option{Kind::Option,
"f",
"ini",
101 "Allows specifying a file to store the configuration in.",
"file",
103 Option{Kind::Option,
"u",
"use-version",
"Use Maxima version <str>.",
105 Option{Kind::Option,
"l",
"lisp",
106 "Use a Maxima compiled with lisp compiler <str>.",
"str"},
107 Option{Kind::Option,
"X",
"extra-args",
108 "Allows specifying extra Maxima arguments.",
"args"},
109 Option{Kind::Option,
"m",
"maxima",
110 "Allows specifying the location of the Maxima binary.",
"file",
112 Option{Kind::Switch,
"",
"enableipc",
113 "Lets Maxima control wxMaxima via interprocess communications. Use "
114 "this option with care."},
115 Option{Kind::Option,
"",
"screenshot",
116 "Evaluate the file, save a screenshot as <file> once Maxima is idle "
117 "and exit. What is shown is read from the [Screenshot] group of the "
118 "configuration (see --ini). For the manual's screenshots; needs an "
120 "file", Complete::AnyFile},
121 Option{Kind::Option,
"",
"wxmathml-lisp",
122 "Location of wxMathML.lisp (if not the built-in should be used, "
123 "mainly for developers).",
124 "file", Complete::AnyFile},
138 "wxm",
"wxmx",
"zip",
"mac",
"out",
"xml",
"dem",
"lisp",
"lsp",
"mc"};
constexpr std::array< std::string_view, 10 > OpenableExtensions
The extensions (without the dot, lower case) of the files wxMaxima opens.
Definition: CommandLineOptions.h:137
constexpr std::array Options
Every option wxMaxima understands, in the order –help lists them.
Definition: CommandLineOptions.h:74
Kind
Whether an entry is a bare switch or takes a value.
Definition: CommandLineOptions.h:47
constexpr std::string_view ParamDescription
The description of the positional arguments (the files to open)
Definition: CommandLineOptions.h:128
Complete
What a shell should offer to complete the value of an option with.
Definition: CommandLineOptions.h:50
@ Openable
A file wxMaxima opens (see OpenableExtensions)
@ AnyFile
Any file (or program: a path, too)
@ Nothing
Free text: offer nothing.
One command-line option.
Definition: CommandLineOptions.h:57
std::string_view valueName
For an Option: what the value is called in the man page.
Definition: CommandLineOptions.h:66
std::string_view description
The text –help, the man page and the completions show (not translated)
Definition: CommandLineOptions.h:64
std::string_view longName
Long name, used without its leading "--".
Definition: CommandLineOptions.h:62
std::string_view shortName
One-letter name, or empty if there is none.
Definition: CommandLineOptions.h:60
bool isHelp
True for the entry wxCmdLineParser treats as "show the help".
Definition: CommandLineOptions.h:70
Complete complete
For an Option: what the shell completes its value with.
Definition: CommandLineOptions.h:68