Skip to content

Commit

Permalink
Better help message, including default values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith Rarick committed Dec 11, 2007
1 parent 0da46e1 commit 3b62e54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beanstalkd.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ static void
usage(char *msg, char *arg)
{
if (arg) warnx("%s: %s", msg, arg);
fprintf(stderr, "Use: %s [-d] [-h]\n"
fprintf(stderr, "Use: %s [-d] [-l ADDR] [-p PORT] [-h]\n"
"\n"
"Options:\n"
" -d detach\n"
" -l ADDR listen on address\n"
" -p PORT listen on port\n"
" -l ADDR listen on address (default is 0.0.0.0)\n"
" -p PORT listen on port (default is 11300)\n"
" -h show this help\n",
me);
exit(arg ? 5 : 0);
Expand Down

0 comments on commit 3b62e54

Please sign in to comment.