From ba72ca72e9c56156c05742c37fc52da1c990c8f7 Mon Sep 17 00:00:00 2001 From: Andrey Golovizin Date: Tue, 29 Jun 2021 23:20:50 +0200 Subject: [PATCH] Add command line help --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.rs b/src/main.rs index edb6433..6416a51 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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, }