From 3d73d23fbe6ea1ca6e72bb616d590c40f672d5f1 Mon Sep 17 00:00:00 2001 From: James Rayner Date: Tue, 12 May 2009 23:23:19 +1000 Subject: improve netcfg help text --- src/netcfg | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/netcfg b/src/netcfg index 05599c5..0a128cb 100644 --- a/src/netcfg +++ b/src/netcfg @@ -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) -- cgit v1.2.3-24-g4f1b