Add command line help
This commit is contained in:
parent
12a9965f10
commit
ba72ca72e9
1 changed files with 6 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ const BASE_URL: &str = "https://api.azirevpn.com/v1";
|
|||
|
||||
#[derive(Clap, Debug)]
|
||||
struct Opts {
|
||||
/// Enables JSON output
|
||||
#[clap(short, long)]
|
||||
json: bool,
|
||||
|
||||
|
|
@ -27,8 +28,13 @@ struct ConfigOpts {
|
|||
|
||||
#[derive(Clap, Debug)]
|
||||
enum Command {
|
||||
/// Prints the list of VPN endpoints
|
||||
Endpoints,
|
||||
|
||||
/// Prints WireGuard config
|
||||
Config(ConfigOpts),
|
||||
|
||||
/// Checks connection status
|
||||
Check,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue