#include #include #include "slop.hpp" #include "options.hpp" SlopOptions* getOptions( Options& options ) { SlopOptions* foo = new SlopOptions(); options.getFloat("bordersize", 'b', foo->borderSize); options.getFloat("padding", 'p', foo->padding); glm::vec4 color = glm::vec4( foo->r, foo->g, foo->b, foo->a ); options.getColor("color", 'c', color); foo->r = color.r; foo->g = color.g; foo->b = color.b; foo->a = color.a; options.getBool("highlight", 'h', foo->highlight); return foo; } std::string formatOutput( std::string input, SlopSelection selection ) { std::stringstream output; for( unsigned int i=0;iwhat() << "\n"; return 1; } // let the operating system handle any other kind of exception. return 1; }