diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-07-28 22:11:28 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-07-28 22:11:28 +0200 |
commit | 64bb6d8d9965edf058b47df350182c38d2ff1f6a (patch) | |
tree | 56042df5cf77a5b14c77b9f4022b074d10f4f7cf /src | |
parent | b82b6fab9a4ba2ca372bec716fecc99bcc173cd4 (diff) | |
download | manaserv-64bb6d8d9965edf058b47df350182c38d2ff1f6a.tar.gz manaserv-64bb6d8d9965edf058b47df350182c38d2ff1f6a.tar.bz2 manaserv-64bb6d8d9965edf058b47df350182c38d2ff1f6a.tar.xz manaserv-64bb6d8d9965edf058b47df350182c38d2ff1f6a.zip |
Allow -v for setting verbosity
I am really bad at spelling verbosity :->
Diffstat (limited to 'src')
-rw-r--r-- | src/account-server/main-account.cpp | 4 | ||||
-rw-r--r-- | src/game-server/main-game.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/account-server/main-account.cpp b/src/account-server/main-account.cpp index ee5fcaf3..b3edf207 100644 --- a/src/account-server/main-account.cpp +++ b/src/account-server/main-account.cpp @@ -212,7 +212,7 @@ static void printHelp() << " -h --help : Display this help" << std::endl << " --config <path> : Set the config path to use." << " (Default: ./manaserv.xml)" << std::endl - << " --verbosity <n> : Set the verbosity level" << std::endl + << " -v --verbosity <n> : Set the verbosity level" << std::endl << " - 0. Fatal Errors only." << std::endl << " - 1. All Errors." << std::endl << " - 2. Plus warnings." << std::endl @@ -245,7 +245,7 @@ struct CommandLineOptions */ static void parseOptions(int argc, char *argv[], CommandLineOptions &options) { - const char *optString = "h"; + const char *optString = "hv:"; const struct option longOptions[] = { diff --git a/src/game-server/main-game.cpp b/src/game-server/main-game.cpp index 894af5f9..92309319 100644 --- a/src/game-server/main-game.cpp +++ b/src/game-server/main-game.cpp @@ -207,7 +207,7 @@ static void printHelp() << " -h --help : Display this help" << std::endl << " --config <path> : Set the config path to use." << " (Default: ./manaserv.xml)" << std::endl - << " --verbosity <n> : Set the verbosity level" << std::endl + << " -v --verbosity <n> : Set the verbosity level" << std::endl << " - 0. Fatal Errors only." << std::endl << " - 1. All Errors." << std::endl << " - 2. Plus warnings." << std::endl @@ -241,7 +241,7 @@ struct CommandLineOptions */ static void parseOptions(int argc, char *argv[], CommandLineOptions &options) { - const char *optString = "h"; + const char *optString = "hv:"; const struct option longOptions[] = { |