-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathusage.c
More file actions
35 lines (31 loc) · 899 Bytes
/
usage.c
File metadata and controls
35 lines (31 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*-
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2025, Muhammad Saheed <saheed@FreeBSD.org>
*/
#include <stdio.h>
#include "usage.h"
void
usage(FILE *fout)
{
fprintf(fout,
"Usage:"
"\twutil {-h | subcommand [args...]}\n"
"\twutil interfaces\n"
"\twutil interface <interface>\n"
"\twutil [-c <wpa-ctrl-path>] known-networks\n"
"\twutil [-c <wpa-ctrl-path>] {known-network | forget} <ssid>\n"
"\twutil [-c <wpa-ctrl-path>] set\n"
"\t [-p <priority>] [--autoconnect {y | n}] <ssid>\n"
"\twutil [-c <wpa-ctrl-path>] {scan | networks | status | disconnect}\n"
"\twutil [-c <wpa-ctrl-path>] connect\n"
"\t [-i <eap-id>] [-p <password>] [-h] [-f <freq>] <ssid> [password]\n");
}
void
usage_tui(FILE *fout)
{
fprintf(fout,
"Usage:"
"\twutui [-h | --help]\n"
"\twutui [--ctrl-interface <path> | -c <path>]\n");
}