#ifndef OPTIONS_H #define OPTIONS_H #include #include #include #include #include #include "Cryptor.h" #define OPTIONS_FILE ".compassoptions" class Options { public: Options(); virtual ~Options(); PasswordSpec getPasswordSpec(); void checkString(std::string str); void parseArgv(int start, int argc, char* argv[]); // Options std::string user; std::string pass; std::string dr; // directory int cn; // credential number int ml; // max length bool ns; // no special chars bool nc; // no caps bool nn; // no numeric chars bool pp; // print password (don't use clipboard) bool cc; // preserve clipboard (don't clean) private: std::vector loadOptionsFile(int start, int argc, char* argv[]); }; #endif // OPTIONS_H