X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fgetopt.h;h=407d3459984fce67c42ffd92f1c9ffe7faae4b23;hb=7b81490ae4ed6c7c8566f889d146677827f5d4a5;hp=411515f5dd9c1d837e47131ca3c2ee1d08f21e91;hpb=b54e273fec47af51792955143e84417b638ad2b7;p=libs%2Fcore.git diff --git a/source/core/getopt.h b/source/core/getopt.h index 411515f..407d345 100644 --- a/source/core/getopt.h +++ b/source/core/getopt.h @@ -272,8 +272,10 @@ private: unsigned process_short(const char *const *); public: - /** Generates a single line that describes known options and arguments. */ - std::string generate_usage(const std::string &) const; + /** Generates a single line that describes known options and arguments. If + compact is true, the options list is replaced with a placeholder. This + provides cleaner output if full help text is printed. */ + std::string generate_usage(const std::string &, bool compact = false) const; /** Generates help for known options and arguments in tabular format, one item per line. The returned string will have a linefeed at the end. */