]> rtime.felk.cvut.cz Git - boost-statechart-viewer.git/blob - commandlineopt.h
You need to specify the input file. The start state has red color in the graph.
[boost-statechart-viewer.git] / commandlineopt.h
1 #include "llvm/Support/CommandLine.h"
2
3 using namespace std;
4
5 llvm::cl::opt<string> outputFile("o", llvm::cl::desc("Specify output filename"), llvm::cl::value_desc("filename"), llvm::cl::init("Graph")); //option -o is not required. implicit filename is Graph
6
7 llvm::cl::list<string> includeFiles("I", llvm::cl::desc("Specify the location of included files"),  llvm::cl::value_desc("Source location"), llvm::cl::OneOrMore); //option -I must be there at least once
8
9 llvm::cl::opt<string> inputFilename(llvm::cl::Positional, llvm::cl::desc("input file"), llvm::cl::Required); // input file
10