Tutorial:OptionParser
From MSL-Libraries
Jump to navigationJump to searchThis is an example of how to add and use the MSL command-line parser ( OptionParser object ). This tutorial will also discuss the common conventions used when using OptionParser to write MSL programs. It is good to follow these conventions so that most MSL developers can easily read and help fix the option parsing code of any MSL program.
WARNING: Tutorial writing in progress, some errors may exist.
Complete source of example_option_parser.cpp
Complete source of example_option_parser.h
To compile
% make bin/example_option_parser
To run the program
Go to the main directory and run the command
% bin/example_option_parser
Program description
Conventions