genconfig: Clean-up usage() display
* Semi-sorted order. * Move arguments with flags up.
This commit is contained in:
parent
0c743d91b6
commit
9e7b363758
@ -34,25 +34,25 @@ getroute() {
|
|||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [-d]"
|
echo "usage: $0 [-d]"
|
||||||
echo " -u SERVER_PUBLIC_URL"
|
echo " -u SERVER_PUBLIC_URL"
|
||||||
echo " [-s SERVER_SUBNET]"
|
echo " [-e EXTRA_SERVER_CONFIG ]"
|
||||||
echo " [-r ROUTE ...]"
|
echo " [-f FRAGMENT ]"
|
||||||
echo " [-p PUSH ...]"
|
|
||||||
echo " [-n DNS_SERVER ...]"
|
echo " [-n DNS_SERVER ...]"
|
||||||
|
echo " [-p PUSH ...]"
|
||||||
|
echo " [-r ROUTE ...]"
|
||||||
|
echo " [-s SERVER_SUBNET]"
|
||||||
echo
|
echo
|
||||||
echo "optional arguments:"
|
echo "optional arguments:"
|
||||||
echo " -d Disable NAT routing and default route"
|
echo " -2 Enable two factor authentication using Google Authenticator."
|
||||||
|
echo " -a Authenticate packets with HMAC using the given message digest algorithm (auth)."
|
||||||
echo " -c Enable client-to-client option"
|
echo " -c Enable client-to-client option"
|
||||||
|
echo " -C A list of allowable TLS ciphers delimited by a colon (cipher)."
|
||||||
|
echo " -d Disable NAT routing and default route"
|
||||||
echo " -D Do not push dns servers"
|
echo " -D Do not push dns servers"
|
||||||
echo " -N Configure NAT to access external server network"
|
|
||||||
echo " -m Set client MTU"
|
echo " -m Set client MTU"
|
||||||
|
echo " -N Configure NAT to access external server network"
|
||||||
echo " -t Use TAP device (instead of TUN device)"
|
echo " -t Use TAP device (instead of TUN device)"
|
||||||
echo " -T Encrypt packets with the given cipher algorithm instead of the default one (tls-cipher)."
|
echo " -T Encrypt packets with the given cipher algorithm instead of the default one (tls-cipher)."
|
||||||
echo " -C A list of allowable TLS ciphers delimited by a colon (cipher)."
|
|
||||||
echo " -a Authenticate packets with HMAC using the given message digest algorithm (auth)."
|
|
||||||
echo " -z Enable comp-lzo compression."
|
echo " -z Enable comp-lzo compression."
|
||||||
echo " -2 Enable two factor authentication using Google Authenticator."
|
|
||||||
echo " -f Set the fragment directive."
|
|
||||||
echo " -e Add extra server config"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$DEBUG" == "1" ]; then
|
if [ "$DEBUG" == "1" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user