wpa_supplicant: Fix usage text based on build options

Signed-hostap: Dan Williams <dcbw@redhat.com>
This commit is contained in:
Dan Williams 2014-01-20 17:03:15 -06:00 committed by Jouni Malinen
parent dcdd3838ef
commit 36bd29ee5e

View file

@ -22,13 +22,24 @@ static void usage(void)
int i;
printf("%s\n\n%s\n"
"usage:\n"
" wpa_supplicant [-BddhKLqqstuvW] [-P<pid file>] "
" wpa_supplicant [-BddhKLqq"
#ifdef CONFIG_DEBUG_SYSLOG
"s"
#endif /* CONFIG_DEBUG_SYSLOG */
"t"
#ifdef CONFIG_DBUS
"u"
#endif /* CONFIG_DBUS */
"vW] [-P<pid file>] "
"[-g<global ctrl>] \\\n"
" [-G<group>] \\\n"
" -i<ifname> -c<config file> [-C<ctrl>] [-D<driver>] "
"[-p<driver_param>] \\\n"
" [-b<br_ifname>] [-f<debug file>] [-e<entropy file>] "
"\\\n"
" [-b<br_ifname>] [-e<entropy file>]"
#ifdef CONFIG_DEBUG_FILE
" [-f<debug file>]"
#endif /* CONFIG_DEBUG_FILE */
" \\\n"
" [-o<override driver>] [-O<override ctrl>] \\\n"
" [-N -i<ifname> -c<conf> [-C<ctrl>] "
"[-D<driver>] \\\n"