~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzle.cc

  • Committer: Andrew Hutchings
  • Date: 2010-12-13 15:33:51 UTC
  • mto: This revision was merged to the branch mainline in revision 2006.
  • Revision ID: andrew@linuxjedi.co.uk-20101213153351-0pgljhxmftrudzcw
Modify dtr to cope with drizzleadmin and create test case

Show diffs side-by-side

added added

removed removed

Lines of Context:
1386
1386
  N_("Password to use when connecting to server. If password is not given it's asked from the tty."))
1387
1387
  ("port,p", po::value<uint32_t>()->default_value(0),
1388
1388
  N_("Port number to use for connection or 0 for default to, in order of preference, drizzle.cnf, $DRIZZLE_TCP_PORT, built-in default"))
 
1389
#ifdef DRIZZLE_ADMIN_TOOL
 
1390
  ("user,u", po::value<string>(&current_user)->default_value("root"),
 
1391
#else
1389
1392
  ("user,u", po::value<string>(&current_user)->default_value(""),
 
1393
#endif
1390
1394
  N_("User for login if not current user."))
1391
1395
  ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"),
1392
1396
  N_("The protocol of connection (mysql or drizzle)."))