Skip to content

Commit cda9b72

Browse files
OptionParser.[ch]pp: Adding an option for the 'about' message to be unformatted, which assumes it is formatted within the calling code
1 parent a545b8c commit cda9b72

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)