options_description を印刷するときに、許可されたオプションの説明の前にテキストを印刷したいと思います。何かのようなもの :
This program counts from 1 to 10. <--- this is what is missing
Generic options:
-h [ --help ] Produce help message.
-v [ --version ] Show program name/version banner and exit.
現在、私は手でそれを追加します:
if (vm.count("help")) {
cout << "options_description\n\n" << my_options_description << endl;
return 1;
}
これを options_description オブジェクトに直接格納することは可能ですか?