Skip to content

Commit

Permalink
Changed --udev back to -u and --user to -U
Browse files Browse the repository at this point in the history
  • Loading branch information
marcan committed Aug 19, 2009
1 parent dd32581 commit f4854f3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions usbmuxd/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,9 @@ static void usage()
printf("\t-h|--help Print this message.\n");
printf("\t-v|--verbose Be verbose (use twice or more to increase).\n");
printf("\t-f|--foreground Do not daemonize (implies one -v).\n");
printf("\t-u|--user[=USER] Change to this user after startup (needs usb privileges).\n");
printf("\t-U|--user[=USER] Change to this user after startup (needs usb privileges).\n");
printf("\t If USER is not specified, defaults to usbmux.\n");
printf("\t-d|--udev Run in udev operation mode.\n");
printf("\t-u|--udev Run in udev operation mode.\n");
printf("\t-x|--exit Tell a running instance to exit if there are no devices\n");
printf("\t connected (must be in udev mode).\n");
printf("\t-X|--force-exit Tell a running instance to exit, even if there are still\n");
Expand All @@ -319,8 +319,8 @@ static void parse_opts(int argc, char **argv)
{"help", 0, NULL, 'h'},
{"foreground", 0, NULL, 'f'},
{"verbose", 0, NULL, 'v'},
{"user", 2, NULL, 'u'},
{"udev", 0, NULL, 'd'},
{"user", 2, NULL, 'U'},
{"udev", 0, NULL, 'u'},
{"exit", 0, NULL, 'x'},
{"force-exit", 0, NULL, 'X'},
{NULL, 0, NULL, 0}
Expand All @@ -343,12 +343,12 @@ static void parse_opts(int argc, char **argv)
case 'v':
++verbose;
break;
case 'u':
case 'U':
drop_privileges = 1;
if(optarg)
drop_user = optarg;
break;
case 'd':
case 'u':
opt_udev = 1;
break;
case 'x':
Expand Down

0 comments on commit f4854f3

Please sign in to comment.