Skip to content

Latest commit

 

History

History
77 lines (49 loc) · 1.07 KB

usage.md

File metadata and controls

77 lines (49 loc) · 1.07 KB

Usage

setUsage

void setUsage(const char* usage);

Set the usage message.

getUsage

std::string getUsage() const;

Get the usage message.

setDescription

void setDescription(const char* description);

Set the description in usage message.

getDescription

const std::string& getDescription() const;

Get the description message.

setEpilog

void setEpilog(const char* epilog);

Set the epilog in usage message.

getEpilog

const std::string& getEpilog() const;

Get the epilog message.

setUsageWidth

void setUsageWidth(std::size_t padWidth, std::size_t argsWidth, std::size_t sepWidth, std::size_t helpWidth);

Set the usage witdhs.

args.setUsageWidth(2, 20, 2, 56); // default

args.setUsageWidth(2, 30, 2, 15);

args.setUsageWidth(1, 21, 1, 30);