include/relpipe/cli/CLI.h
branchv_0
changeset 13 b1e861523740
parent 7 95e647bf1922
child 20 45d60cf711e1
equal deleted inserted replaced
12:dca712844ba9 13:b1e861523740
    67 	static const int EXIT_CODE_SUCCESS = 0;
    67 	static const int EXIT_CODE_SUCCESS = 0;
    68 	static const int EXIT_CODE_UNEXPECTED_ERROR = 1;
    68 	static const int EXIT_CODE_UNEXPECTED_ERROR = 1;
    69 	static const int EXIT_CODE_BAD_SYNTAX = 3;
    69 	static const int EXIT_CODE_BAD_SYNTAX = 3;
    70 	static const int EXIT_CODE_UNKNOWN_COMMAND = 4;
    70 	static const int EXIT_CODE_UNKNOWN_COMMAND = 4;
    71 	static const int EXIT_CODE_DATA_ERROR = 5;
    71 	static const int EXIT_CODE_DATA_ERROR = 5;
       
    72 	static const int EXIT_CODE_BAD_CLI_ARGUMENTS = 6;
    72 
    73 
    73 	/**
    74 	/**
    74 	 * std::cin and std::cout are "tied" by default i.e. reading from std::cin causes flush of the std::cout.
    75 	 * std::cin and std::cout are "tied" by default i.e. reading from std::cin causes flush of the std::cout.
    75 	 * Call this to "untie" them and have less write() calls (better buffering).
    76 	 * Call this to "untie" them and have less write() calls (better buffering).
    76 	 */
    77 	 */