Changes between Version 1 and Version 2 of DbDumpScript


Ignore:
Timestamp:
01/19/2007 03:27:55 AM (8 years ago)
Author:
limodou@…
Comment:

update code

Legend:

Unmodified
Added
Removed
Modified
  • DbDumpScript

    v1 v2  
    9191#
    9292# Version 1.0 2007-01-18
     93# Update 1.1 2007-01-19
     94#    * if no arguments after db_dump.py, then it'll show help infomation
    9395#
    9496
     
    337339def get_usage():
    338340    usage = """
    339   %prog action [options]:
    340       dump app1 [appn...]
    341       load app1 [appn...]
     341  %prog [options] action [applist]:
     342      action: dump load
    342343"""
    343344    return usage
     
    360361
    361362    options, args = parser.parse_args(argv[1:])
     363   
     364    if len(args) == 0:
     365        parser.print_help()
     366        sys.exit(0)
     367       
    362368    return options, args
    363369
Back to Top