35#ifndef WXM_COMMANDLINE_H
36#define WXM_COMMANDLINE_H
38#include <wx/cmdline.h>
44namespace wxm::cmdline {
71void SetArguments(wxCmdLineParser &parser,
const std::vector<wxString> &args);
94int Parse(wxCmdLineParser &parser,
const std::vector<wxString> &args,
95 bool showUsage =
true);
118 std::optional<wxString> ini;
std::vector< wxString > DiffAliasArguments(const std::vector< wxString > &args)
The arguments wxMaxima acts on, if it was started under this name.
Definition: CommandLine.cpp:82
Settings Interpret(const wxCmdLineParser &parser)
Reads the settings out of a parser that has already run Parse()
Definition: CommandLine.cpp:218
wxString CanonicalFileArgument(const wxString &arg)
A file name from the command line, made absolute.
Definition: CommandLine.cpp:203
int Parse(wxCmdLineParser &parser, const std::vector< wxString > &args, bool showUsage)
Parses the arguments (program first) with wxMaxima's options.
Definition: CommandLine.cpp:156
const wxCmdLineEntryDesc * ParserDescription()
The wxCmdLineParser description, made from wxm::cmdline::Options.
Definition: CommandLine.cpp:39
void SetArguments(wxCmdLineParser &parser, const std::vector< wxString > &args)
Hands an argument vector (program first) to the parser, unmodified.
Definition: CommandLine.cpp:102
What the user asked for on the command line.
Definition: CommandLine.h:105
std::vector< wxString > params
The positional arguments, as given (the files –diff compares)
Definition: CommandLine.h:128
bool enableIpc
–enableipc –ini: the configuration file, made absolute
Definition: CommandLine.h:116
bool version
–version
Definition: CommandLine.h:106
bool exitOnError
–exit-on-error
Definition: CommandLine.h:115
bool pipe
–pipe
Definition: CommandLine.h:114
wxString extraMaximaArgs
What –lisp, –extra-args and –use-version add to Maxima's command line.
Definition: CommandLine.h:126
bool singleProcess
–single_process
Definition: CommandLine.h:110
std::optional< wxString > screenshot
–screenshot: the PNG file to write, made absolute
Definition: CommandLine.h:124
std::optional< wxString > wxMathMLLisp
–wxmathml-lisp
Definition: CommandLine.h:120
bool eval
–eval
Definition: CommandLine.h:108
bool debug
–debug
Definition: CommandLine.h:113
std::vector< wxString > filesToOpen
The files to open, each in a window of its own, made absolute.
Definition: CommandLine.h:134
bool singleThread
–single_thread
Definition: CommandLine.h:111
bool logToStderr
–logtostderr
Definition: CommandLine.h:112
std::optional< wxString > maxima
–maxima: the Maxima binary
Definition: CommandLine.h:122
bool batch
–batch
Definition: CommandLine.h:107
bool diff
–diff
Definition: CommandLine.h:109