Changeset 448 for branches


Ignore:
Timestamp:
10/04/2009 21:03:05 (3 years ago)
Author:
blee
Message:

Merge from trunk multiple help-related fixes.

Fixes #75, #78, #79

Location:
branches/confman-1.9
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/confman-1.9

  • branches/confman-1.9/confadmindoc.sh

    r323 r448  
    5050 
    5151function print_help { 
     52    [ -z "$1" ] && print_usage 0 
     53 
    5254  case $1 in 
    5355          se* ) 
     
    6769;; 
    6870esac 
    69 return $2 
     71return 0 
    7072} 
    71  
    72  
    73  
  • branches/confman-1.9/confman.in

    r434 r448  
    256256                ;; 
    257257            *) 
    258                 print_help 1 
     258                print_usage 1 
    259259                ;; 
    260260        esac 
     
    560560            ;; 
    561561            *) 
    562             print_help 1 
     562            print_usage 1 
    563563            ;; 
    564564        esac 
     
    600600            ;; 
    601601            *) 
    602             print_help 1 
     602            print_usage 1 
    603603            ;; 
    604604        esac 
     
    639639            ;; 
    640640            *) 
    641             print_help 1 
     641            print_usage 1 
    642642            ;; 
    643643        esac 
  • branches/confman-1.9/confmandoc.sh

    r418 r448  
    8282 
    8383function print_help { 
     84    [ -z "$1" ] && print_usage 0 
     85 
    8486  case $1 in 
    8587          se* ) 
     
    503505    set         Set the host's recipe to the given name 
    504506 
    505 Recipe 
    506  
    507507EOF 
    508508;; 
     
    511511;; 
    512512esac 
    513 return $2 
     513return 0 
    514514} 
    515  
    516  
    517  
Note: See TracChangeset for help on using the changeset viewer.