dbrtools/dbr/help.py
changeset 178 eab8a264a833
equal deleted inserted replaced
176:6d3c3db11e72 178:eab8a264a833
       
     1 # Copyright (c) 2009 Symbian Foundation Ltd
       
     2 # This component and the accompanying materials are made available
       
     3 # under the terms of the License "Eclipse Public License v1.0"
       
     4 # which accompanies this distribution, and is available
       
     5 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     6 #
       
     7 # Initial Contributors:
       
     8 # Symbian Foundation Ltd - initial contribution.
       
     9 #
       
    10 # Contributors:
       
    11 # mattd <mattd@symbian.org>
       
    12 #
       
    13 # Description:
       
    14 # DBR help - displays the DBR help
       
    15 
       
    16 import sys
       
    17 
       
    18 def main():
       
    19   args = sys.argv
       
    20   run(args)
       
    21 
       
    22 def run(args):
       
    23     if(len(args)):
       
    24       try:
       
    25         tool = __import__(args[0])
       
    26         tool.help()
       
    27       except ImportError:
       
    28         print "No help on %s\n" % args[0]
       
    29         usage()
       
    30     else:
       
    31       usage()
       
    32     
       
    33 def usage():    
       
    34     print "Usage:"
       
    35     print "\tdbr intro\t- basic introduction\n"
       
    36 
       
    37     print "\tdbr getenv\t- installs a baseline NOT IMPLEMENTED"
       
    38     print "\tdbr checkenv\t- Checks current environment"
       
    39 #    print "\tdbr diffbaseline\t- Compares baselines"
       
    40     print "\tdbr diffenv\t- Compares environments"
       
    41     print "\tdbr cleanenv\t- cleans the environment"
       
    42     print ""
       
    43     print "\tdbr installpatch\t- installs a patch"
       
    44     print "\tdbr createpatch\t- creates a patch"
       
    45     print "\tdbr removepatch\t- removes a patch"
       
    46     print "\tdbr listpatches\t- lists patches"
       
    47     print ""
       
    48     print "\tdbr help - help"
       
    49     
       
    50 def help():
       
    51   print "No help available!"