MCPcopy Create free account
hub / github.com/apngasm/apngasm / start

Method start

cli/src/cli.cpp:138–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136CLI::~CLI() { delete pListener; }
137
138int CLI::start(void) {
139 using namespace std;
140 if (options.has("help")) {
141 options.putHelpTo(cout);
142 return ERRCODE_HELP;
143 }
144 if (options.has("version")) {
145 options.putVersionTo(cout);
146 return ERRCODE_VERSION;
147 }
148 string srcFile;
149 if (options.disassembleFile(srcFile)) {
150 return disassemble(srcFile);
151 }
152 if (options.specFile(srcFile)) {
153 assembler.loadAnimationSpec(srcFile);
154 return assemble();
155 }
156
157 assembler.setLoops(options.getLoops());
158 assembler.setSkipFirst(options.has("skip"));
159 return assemble();
160}
161
162int CLI::assemble(void) {
163 using std::cout;

Callers 1

mainFunction · 0.80

Calls 8

hasMethod · 0.80
putHelpToMethod · 0.80
putVersionToMethod · 0.80
disassembleFileMethod · 0.80
specFileMethod · 0.80
setLoopsMethod · 0.80
setSkipFirstMethod · 0.80
getLoopsMethod · 0.45

Tested by

no test coverage detected