Select Git revision
test_aperture.py
Forked from
finesse / pykat
Source project has a limited visibility.
-
Daniel Brown authored
objects that have properties dynamically added to themselves need to declare themselves as new classes, with a base class of the original. Otherwise when we add properties we add them to all instances.
Daniel Brown authoredobjects that have properties dynamically added to themselves need to declare themselves as new classes, with a base class of the original. Otherwise when we add properties we add them to all instances.
orc.cpp 602 B
#include "ResourceCompiler.h"
void printUsage() {
cerr << "Invalid command-line options!" << endl;
cerr << "Usage: orc <input filename> <output filename>" << endl;
}
int main(int argc, char *argv[])
{
if(argc != 3) {
printUsage();
exit(1);
}
else {
string inputFilename(argv[1]);
string outputFilename(argv[2]);
// TODO: better filename checking
if( inputFilename == "." || inputFilename == ".." ||
outputFilename == "." || outputFilename == "..")
{
printUsage();
exit(1);
}
ResourceCompiler rc(inputFilename, outputFilename);
rc.compile();
exit(0);
}
}