#compdef matlab

_arguments : \
    {-h,-help}'[display arguments]' \
    '(-e)-n[display final environment variables, and exit]' \
    '(-n)-e[display ALL the environment variables and values, and exit]' \
    '-arch[start MATLAB assuming architecture arch]:architecture:' \
    '-c[set location of the license file]:licensefile:_files' \
    '(-nodisplay)-display:display:_x_display' \
    '(-display)-nodisplay[do not display any X commands]' \
    '-nosplash[do not display the splash screen during startup]' \
    '-mwvisual[the default X visual to use for figure windows]:visualid:' \
    '-debug[provide debugging information especially for X based problems]' \
    '(-nodesktop -nojvm)-desktop[allow the MATLAB desktop to be started by a process without a controlling terminal]' \
    '(-desktop -nojvm)-nodesktop[do not start the MATLAB desktop]' \
    '(-nodesktop -desktop)-nojvm[shut off all Java support by not starting the Java virtual machine]' \
    '-r[start MATLAB and execute the MATLAB_command]:MATLAB_command:' \
    '-logfile[make a copy of any output to the command window in file log]:log file:' \
    '-D-:debugger:_path_commands'
