Changes between Version 2 and Version 3 of DbDumpScript


Ignore:
Timestamp:
01/19/07 07:07:16 (8 years ago)
Author:
limodou@…
Comment:

update code

Legend:

Unmodified
Added
Removed
Modified
  • DbDumpScript

    v2 v3  
    7474}}}
    7575
    76 === FeedBack ===
     76=== Feedback ===
    7777
    7878'''Write down what you think'''
     
    366366        sys.exit(0)
    367367       
    368     return options, args
    369 
    370 if __name__ == '__main__':
    371     options, args = execute_from_command_line()
    372368    action = args[0]
    373369    apps = args[1:]
     
    389385    elif action == 'load':
    390386        loaddb(apps, 'py', options)
    391 }}}
     387    else:
     388        parser.print_help()
     389
     390if __name__ == '__main__':
     391    execute_from_command_line()
     392}}}
Back to Top