From 3eb6dda60de4717e5a6abd5a23bd3bf97a5f4714 Mon Sep 17 00:00:00 2001 From: Julien Escario Date: Mon, 3 May 2021 18:09:05 +0200 Subject: [PATCH] Better usage details with some explanations --- wireguard/wgportal_peer_install.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/wireguard/wgportal_peer_install.sh b/wireguard/wgportal_peer_install.sh index c223a85..04388d0 100755 --- a/wireguard/wgportal_peer_install.sh +++ b/wireguard/wgportal_peer_install.sh @@ -5,7 +5,18 @@ # - verify curl output to prevent overwriting config file with an HTTP answer _usage() { - printf "Usage: %s [options...] \n" "$0" + echo " + Usage: $0 --url [options...] + +Commands : + -d, --download only download config file + -i, --install download config file and install the service (UNIMPLEMENTED) + +Parameters: + -u, --url Specify your WG Portal base URL + -f, --filename Specify Wireguard filename (default: /etc/wireguard/wg0.conf) + " + _version } _version() {