~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-14 19:24:40 UTC
  • mto: (2318.6.3 refactor7)
  • mto: This revision was merged to the branch mainline in revision 2337.
  • Revision ID: olafvdspek@gmail.com-20110614192440-85tlnug3gr6azl3m
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
535
535
  _("Do not make a UTF8 connection to MySQL, use if you have UTF8 data in a non-UTF8 table"))
536
536
  ;
537
537
 
538
 
  UserDetect detected_user;
539
 
  const char* shell_user= detected_user.getUser();
540
 
 
541
538
  po::options_description client_options(_("Options specific to the client"));
542
539
  client_options.add_options()
543
540
  ("host,h", po::value<string>(&current_host)->default_value("localhost"),
546
543
  _("Password to use when connecting to server. If password is not given it's solicited on the tty."))
547
544
  ("port,p", po::value<uint32_t>(&opt_drizzle_port)->default_value(0),
548
545
  _("Port number to use for connection."))
549
 
  ("user,u", po::value<string>(&current_user)->default_value((shell_user ? shell_user : "")),
 
546
  ("user,u", po::value<string>(&current_user)->default_value(UserDetect().getUser()),
550
547
  _("User for login if not current user."))
551
548
  ("protocol",po::value<string>(&opt_protocol)->default_value("mysql"),
552
549
  _("The protocol of connection (mysql or drizzle)."))