diff options
author | James Rayner <james@archlinux.org> | 2009-05-12 15:23:19 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-05-12 15:23:19 +0200 |
commit | 3d73d23fbe6ea1ca6e72bb616d590c40f672d5f1 (patch) | |
tree | 987dacc61aa49994561bd5e584c4a9387cb1de10 | |
parent | add84f8cb178f3138839d5692766fda3de3d0d55 (diff) | |
download | netctl-3d73d23fbe6ea1ca6e72bb616d590c40f672d5f1.tar.gz netctl-3d73d23fbe6ea1ca6e72bb616d590c40f672d5f1.tar.xz |
improve netcfg help text
-rw-r--r-- | src/netcfg | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -18,24 +18,26 @@ usage() echo " Start specified profile: netcfg profile " echo " Other functions: netcfg argument profile" echo "Arguments:" + echo "-a, all-down Take all active profiles down" echo "-c, check-iface Do not start profile if interface is already up" echo "-d, down Take specified profile down" - echo "-a, all-down Take all active profiles down" + echo "-h, help This help message" echo "-i, iface-down Take down profile active on specified interface" + echo "-r, reconnect Disconnect and reconnect specified profile" + echo "-u, up Start specified profile" + echo "-v, version Output version information and exit" echo " all-resume Resume previously suspended profiles and reconnect them" echo " all-suspend Store a list of current running profiles and suspend them" - echo "-h, --help This message" - echo "-v, --version Output version information and exit" } # TODO: Re-add ROOT check and rewrite with getopts from BashFAQ case $1 in - --version|-v) + --version|-v|version) version;; - --help|-h) + --help|-h|help) usage;; - -c|check-iface|up) + -c|check-iface|-u|up) CHECK="YES"; profile_up $2;; clean) |