Ignore:
Timestamp:
2011-07-17T11:27:14+02:00 (5 years ago)
Author:
jow
Message:

[package] base-files: add -h and --help options to sysupgrade (#9728)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/sbin/sysupgrade

    r23258 r27630  
    1111export DELAY= 
    1212export CONF_IMAGE= 
     13export HELP=0 
    1314 
    1415# parse options 
     
    2223                -c) export SAVE_OVERLAY=1;; 
    2324                -f) export CONF_IMAGE="$2"; shift;; 
     25                -h|--help) export HELP=1; break;; 
    2426                -*) 
    2527                        echo "Invalid option: $1" 
     
    3739export ARGC="$#" 
    3840 
    39 [ -z "$ARGV" ] && { 
     41[ -z "$ARGV" -o $HELP -gt 0 ] && { 
    4042        cat <<EOF 
    4143Usage: $0 [options] <image file or URL> 
     
    4951        -q           less verbose 
    5052        -v           more verbose 
     53        -h / --help  display this help 
    5154 
    5255EOF 
Note: See TracChangeset for help on using the changeset viewer.