aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2014-01-20 23:03:15 (GMT)
committerJouni Malinen <j@w1.fi>2014-01-21 14:28:31 (GMT)
commit36bd29ee5e88d6bbc44b41371267210e2d0bc8d2 (patch)
tree63964067bcb9da6d849f7fe126b022ac014d8dba /wpa_supplicant
parentdcdd3838ef9a8b4064ec9f9d4519b3e66e26a029 (diff)
downloadhostap-36bd29ee5e88d6bbc44b41371267210e2d0bc8d2.zip
hostap-36bd29ee5e88d6bbc44b41371267210e2d0bc8d2.tar.gz
hostap-36bd29ee5e88d6bbc44b41371267210e2d0bc8d2.tar.bz2
wpa_supplicant: Fix usage text based on build options
Signed-hostap: Dan Williams <dcbw@redhat.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/main.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/wpa_supplicant/main.c b/wpa_supplicant/main.c
index 37f0c78..d56935d 100644
--- a/wpa_supplicant/main.c
+++ b/wpa_supplicant/main.c
@@ -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"