Skip to content

Command line options

Sameer Jagdale edited this page Apr 14, 2015 · 4 revisions

McLab can be used as a standalone tool using the jar file. The general format of the command is as follows

java -jar McLabCore <list of options>

Following is a list of command line options supported by McLabCore.

-h, --help Displays the list of commands supported and exits.
-p, --pretty Pretty prints the input files after parsing. Requires at least file to be provided.
-s, --simplify Simplifies the AST after parsing.
--xml, -x Prints the IR in the XML format.
--json, -j Prints the IR in JSON format.
--matlab, -m No-op. Allowed for backwards compatibility.
--quiet, -q Supresses all information messages.
--natlab, -n Assumes the input files to be in Natlab.
--outdir, -od Outputs everything to the output directory instead of stdout.
--server Run the frontend in server mode on a given port. Default is 47146.
--sport, -sp Set the port the server runs on.
-nh, --noheart Turns off the need for a heartbeat signal.
-v, --version Gets the current version of Natlab.
--mclint Runs the McLint tool.
-t, --tamer Generates the Tamer 3 address code.
--inline Inlines the whole Matlab program in one function, if possible.
--args, --arguments Specifies types of the arguments to the main function as space-separated string.
--tamerplus Generates the tamer+ representation of a program.
--lpath, -lp Path of locations to find Matlab files.
--in Files to be used as input.
--main File to be considered to be the main file and entry point of the program.Note if a main file is not specified, the first file in the list if considered as the main file.
--pref, --preferences Performs the specified preference operation(s) and then exits.
--set_matlab_path Sets path (all path directories ) of a Matlab installation.
--add_matlab_path Adds given paths to Matlab installation paths.
--add_natlab_path Adds given paths to the Natlab path.
--set_natlab_path Sets path directories for the source code and packages.
--show_pref, --show_preferences Displays all stored preferences

##Table of Contents

Clone this wiki locally