#compdef wxmaxima wxmxdiff
# zsh completion for wxmaxima(1).
# Generated by wxmaxima-genopts from src/CommandLineOptions.h:
# change the options there, not here.

_arguments -s -S \
  '(-v --version)'{'-v','--version'}'[Output the version info.]' \
  '(-h --help)'{'-h','--help'}'[Show this help message.]' \
  '(-o --open)'{'-o+','--open='}'[Open a file.]:file:_files -g "*.(wxm|wxmx|zip|mac|out|xml|dem|lisp|lsp|mc)(-.)"' \
  '(-e --eval)'{'-e','--eval'}'[Evaluate the file after opening it.]' \
  '(-d --diff)'{'-d','--diff'}'[Compare 2 or 3 files side-by-side using the Diff viewer.]' \
  '--single_process[Open all worksheets from within the same process.]' \
  '--single_thread[Run all background tasks from within the main thread.]' \
  '(-b --batch)'{'-b','--batch'}'[Run the file and exit afterwards. Halts on questions and stops on errors.]' \
  '--logtostderr[Log all "debug messages" sidebar messages to stderr, too.]' \
  '--debug[Enable costly debug checks.]' \
  '--pipe[Pipe messages from Maxima to stderr.]' \
  '--exit-on-error[Close the program on any Maxima error.]' \
  '--language=[Use this language for the user interface instead of the configured one, for example de or pt_BR. The setting is not saved.]:lang: ' \
  '(-f --ini)'{'-f+','--ini='}'[Allows specifying a file to store the configuration in.]:file:_files' \
  '(-u --use-version)'{'-u+','--use-version='}'[Use Maxima version <str>.]:str: ' \
  '(-l --lisp)'{'-l+','--lisp='}'[Use a Maxima compiled with lisp compiler <str>.]:str: ' \
  '(-X --extra-args)'{'-X+','--extra-args='}'[Allows specifying extra Maxima arguments.]:args: ' \
  '(-m --maxima)'{'-m+','--maxima='}'[Allows specifying the location of the Maxima binary.]:file:_files' \
  '--enableipc[Lets Maxima control wxMaxima via interprocess communications. Use this option with care.]' \
  '--screenshot=[Evaluate the file, save a screenshot as <file> once Maxima is idle and exit. What is shown is read from the \[Screenshot\] group of the configuration (see --ini). For the manual'\''s screenshots; needs an X11 display.]:file:_files' \
  '--wxmathml-lisp=[Location of wxMathML.lisp (if not the built-in should be used, mainly for developers).]:file:_files' \
  '*:input file:_files -g "*.(wxm|wxmx|zip|mac|out|xml|dem|lisp|lsp|mc)(-.)"'
