Changeset 323 for trunk/confman.in


Ignore:
Timestamp:
05/03/2009 16:25:09 (3 years ago)
Author:
ccowart
Message:

Refactored sourcing of the documentation library to support the confadmin
utility. Cleaned up handling of -h for these scripts.

Also set the keywords property on source files that were missing it.

Fixes #20

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/confman.in

    r319 r323  
    3434else 
    3535    echo "Can't find confmancommon.sh. Exiting." >&2 
     36fi 
     37 
     38# Source the documentation library 
     39if [ -f $REPO_DOCS_CONFMAN ] ; then 
     40        . $REPO_DOCS_CONFMAN 
     41else 
     42    echo "Couldn't source the confman shell documentation library" >&2 
     43        exit 1 
    3644fi 
    3745 
     
    937945 
    938946# Debug mode? 
    939 while getopts "d" opt ; do 
     947while getopts "hd-" opt ; do 
    940948        case $opt in 
    941                 d) 
    942                 DEBUG="true" 
    943                 shift 
    944                 ;; 
    945                 *) 
    946                 print_help 1 
    947                 ;; 
     949                d) DEBUG="true" ;; 
     950        h) shift ; print_help "$@" ; exit 0 ;; 
     951                *) print_usage 1 ;; 
    948952        esac 
    949953done 
Note: See TracChangeset for help on using the changeset viewer.