2016-01-06 20:02:06 +00:00
|
|
|
#pragma once
|
2016-01-06 19:45:04 +00:00
|
|
|
|
|
|
|
#include <tclap/StdOutput.h>
|
|
|
|
|
|
|
|
class NiceCmdLineOutput : public TCLAP::CmdLineOutput {
|
|
|
|
public:
|
|
|
|
void usage(TCLAP::CmdLineInterface& cli) override;
|
|
|
|
void version(TCLAP::CmdLineInterface& cli) override;
|
|
|
|
void failure(TCLAP::CmdLineInterface& cli, TCLAP::ArgException& e) override;
|
|
|
|
private:
|
|
|
|
// Writes a brief usage message with short args.
|
|
|
|
void printShortUsage(TCLAP::CmdLineInterface& cli, std::ostream& outStream) const;
|
|
|
|
|
|
|
|
// Writes a longer usage message with long and short args, providing descriptions
|
|
|
|
void printLongUsage(TCLAP::CmdLineInterface& cli, std::ostream& outStream) const;
|
|
|
|
};
|