Skip to content
Snippets Groups Projects
Commit 3b764713 authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Improved formatting of --help a bit.

parent 398218cf
Branches
Tags
No related merge requests found
......@@ -56,9 +56,9 @@ void help(int argc, char **argv)
{
printf("Usage: %sc [parameters] start|stop|restart|reload|running|"
"compile [additional]\n", PACKAGE_NAME);
printf("Parameters:\n"
printf("\nParameters:\n"
" -c [file], --config=[file] Select configuration file.\n"
" -j [num], --jobs=[num] Number of parallel tasks to run (only for 'compile').\n"
" -j [num], --jobs=[num] Number of parallel tasks to run when compiling.\n"
" -f, --force Force operation - override some checks.\n"
" -v, --verbose Verbose mode - additional runtime information.\n"
" -V, --version Print %s server version.\n"
......@@ -67,7 +67,7 @@ void help(int argc, char **argv)
" -a, --auto Enable automatic recompilation (start or reload).\n"
" -h, --help Print help and usage.\n",
PACKAGE_NAME);
printf("Actions:\n"
printf("\nActions:\n"
" start Start %s server zone (no-op if running).\n"
" stop Stop %s server (no-op if not running).\n"
" restart Stops and then starts %s server.\n"
......@@ -76,8 +76,8 @@ void help(int argc, char **argv)
" running Check if server is running.\n"
" checkconf Check server configuration.\n"
"\n"
" checkzone Check zones (accepts specific zones, f.e. "
"'knotc checkzone example1.com example2.com').\n"
" checkzone Check zones (accepts specific zones, \n"
" e.g. 'knotc checkzone example1.com example2.com').\n"
" compile Compile zones (accepts specific zones, see above).\n",
PACKAGE_NAME, PACKAGE_NAME, PACKAGE_NAME, PACKAGE_NAME);
}
......
......@@ -73,7 +73,7 @@ void help(int argc, char **argv)
{
printf("Usage: %sd [parameters]\n",
PACKAGE_NAME);
printf("Parameters:\n"
printf("\nParameters:\n"
" -c, --config [file] Select configuration file.\n"
" -d, --daemonize Run server as a daemon.\n"
" -v, --verbose Verbose mode - additional runtime information.\n"
......
......@@ -26,7 +26,7 @@ static void help(int argc, char **argv)
{
printf("Usage: %s [parameters] origin zonefile\n",
argv[0]);
printf("Parameters:\n"
printf("\n:Parameters:\n"
" -o <outfile> Override output file.\n"
" -v Verbose mode - additional runtime information.\n"
" -s Enable semantic checks.\n"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment