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() {