comparison profilemanager/main.py @ 4:35dc297efa25

adding listing function and other cleanup
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 05 Apr 2010 13:53:22 -0700
parents 979315ed0816
children c77e9bef78d6
comparison
equal deleted inserted replaced
3:4d1cd60dd2a1 4:35dc297efa25
16 return ProfileManager(options.config) 16 return ProfileManager(options.config)
17 17
18 def main(args=sys.argv[1:]): 18 def main(args=sys.argv[1:]):
19 19
20 # global option parsing 20 # global option parsing
21 commands = [ ProfileManager.clone, 21 commands = [ ProfileManager.backup,
22 ProfileManager.backup, 22 ProfileManager.clone,
23 ProfileManager.list,
23 ProfileManager.restore, 24 ProfileManager.restore,
24 ProfileManager.merge ] 25 ProfileManager.merge ]
25 parser = CommandParser(commands, setup=create_profilemanager) 26 parser = CommandParser(commands, setup=create_profilemanager)
26 parser.add_option('-c', '--config', dest='config', 27 parser.add_option('-c', '--config', dest='config',
27 help="specify a profile.ini [default: $HOME/.mozilla/firefox/profiles.ini]") 28 help="specify a profile.ini [default: $HOME/.mozilla/firefox/profiles.ini]")