Skip to content

Commit

Permalink
Bump version and add the warning that this program needs to be run as…
Browse files Browse the repository at this point in the history
… root in the usage info
  • Loading branch information
jackburton79 committed Nov 7, 2017
1 parent b7ad8bd commit d49740e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <string>

extern const char* __progname;
const char* version = "1.6.2";
const char* version = "1.6.3";


static
Expand All @@ -44,6 +44,10 @@ static void
PrintHelpAndExit()
{
std::cout << __progname << " " << version << std::endl;
if (geteuid() != 0) {
std::cout << "WARNING: This program needs to be run as root." << std::endl;
std::cout << std::endl;
}
std::cout << "Usage:" << std::endl;
std::cout << " -h, --help Print usage" << std::endl;
std::cout << " -c, --conf <config_file> Specify configuration file" << std::endl;
Expand Down

0 comments on commit d49740e

Please sign in to comment.