summaryrefslogtreecommitdiff
path: root/hadori.C
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2021-01-13 23:53:07 +0100
committerTimo Weingärtner <timo@tiwe.de>2021-01-14 00:07:29 +0100
commit36dbc5d061b39b22f2620ac0e0a137ea05dbad33 (patch)
treeba9aef7998a9041e7417f4c24b5b3b9308e5ad25 /hadori.C
parent2cad5033359975238cbb95824595b638892bc039 (diff)
downloadhadori-36dbc5d061b39b22f2620ac0e0a137ea05dbad33.tar.gz
improve man page generation with help2man
Diffstat (limited to 'hadori.C')
-rw-r--r--hadori.C11
1 files changed, 7 insertions, 4 deletions
diff --git a/hadori.C b/hadori.C
index 4465ef3..42a93df 100644
--- a/hadori.C
+++ b/hadori.C
@@ -202,7 +202,7 @@ static void recurse_start (std::string const & dir) {
}
int main (int const argc, char const * const * const argv) {
- po::options_description opts("OPTIONS");
+ po::options_description opts("Options");
opts.add_options()
("help,h", "print this help message")
("version,V", "print version information")
@@ -224,13 +224,16 @@ int main (int const argc, char const * const * const argv) {
po::notify(config);
if (config.count("help")) {
- std::cout << "Invocation: hadori [ OPTIONS ] [ ARGUMENTS ]" << std::endl;
- std::cout << opts << std::endl;
+ std::cout << "Usage: hadori [ OPTIONS ] [ ARGUMENTS ]\n";
+ std::cout << opts;
return EX_OK;
}
if (config.count("version")) {
- std::cout << HADORI_VERSION << std::endl;
+ std::cout << HADORI_VERSION "\n";
+ std::cout << "Written by Timo Weingärtner.\n";
+ std::cout << "Report bugs to the Debian BTS at https://bugs.debian.org/\n";
+ std::cout << "or by mail to timo@tiwe.de.\n";
return EX_OK;
}