Skip to content

Commit

Permalink
[usb_moded] Split long --help lines
Browse files Browse the repository at this point in the history
Improves readability on narrow console sessions and allows writing
multi-line explanations when/if needed.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Jun 5, 2018
1 parent 709e49a commit c30c835
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions src/usb_moded.c
Expand Up @@ -851,21 +851,34 @@ static void usage(void)
"Usage: usb_moded [OPTION]...\n"
"USB mode daemon\n"
"\n"
" -a, --android_usb_broken \tkeep gadget active on broken android kernels\n"
" -i, --android_usb_broken_udev_events \tignore incorrect disconnect events after mode setting\n"
" -f, --fallback \tassume always connected\n"
" -s, --force-syslog \t\tlog to syslog\n"
" -T, --force-stderr \t\tlog to stderr\n"
" -l, --log-line-info \t\tlog to stderr and show origin of logging\n"
" -D, --debug \t\tturn on debug printing\n"
" -d, --diag \t\tturn on diag mode\n"
" -h, --help \t\tdisplay this help and exit\n"
" -r, --rescue \t\trescue mode\n"
" -a, --android_usb_broken\n"
" keep gadget active on broken android kernels\n"
" -i, --android_usb_broken_udev_events\n"
" ignore incorrect disconnect events after mode setting\n"
" -f, --fallback \n"
" assume always connected\n"
" -s, --force-syslog \n"
" log to syslog\n"
" -T, --force-stderr \n"
" log to stderr\n"
" -l, --log-line-info\n"
" log to stderr and show origin of logging\n"
" -D, --debug \n"
" turn on debug printing\n"
" -d, --diag \n"
" turn on diag mode\n"
" -h, --help \n"
" display this help and exit\n"
" -r, --rescue \n"
" rescue mode\n"
#ifdef SYSTEMD
" -n, --systemd \t\tnotify systemd when started up\n"
" -n, --systemd \n"
" notify systemd when started up\n"
#endif
" -v, --version \t\toutput version information and exit\n"
" -m, --max-cable-delay=<ms>\tmaximum delay before accepting cable connection\n"
" -v, --version \n"
" output version information and exit\n"
" -m, --max-cable-delay=<ms>\n"
" maximum delay before accepting cable connection\n"
"\n");
}

Expand Down

0 comments on commit c30c835

Please sign in to comment.