Skip to content

Commit ca5acc5

Browse files
Merge pull request #46 from smithlabcode/udpating-option-parser-for-descriptions
adding a raw mode for program descriptions
2 parents a545b8c + cda9b72 commit ca5acc5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

OptionParser.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,12 @@ OptionParser::about_message() const {
561561
}
562562

563563

564+
string
565+
OptionParser::about_message_raw() const {
566+
return prog_descr;
567+
}
568+
569+
564570
string
565571
OptionParser::invalid_leftover() const {
566572
static const string left_tag("invalid leftover args [should be ");

OptionParser.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ class OptionParser {
122122

123123
bool about_requested() const {return about_request;}
124124
std::string about_message() const;
125+
std::string about_message_raw() const;
125126
std::string invalid_leftover() const;
126127

127128
bool option_missing() const {

0 commit comments

Comments
 (0)