Mercurial > pidgin
comparison libpurple/plugins/startup.py @ 18136:00cec200ec58
1. Show the usage of -m in the help message.
2. Show a helpful message if no argument is given to startup.py.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 17 Jun 2007 00:19:12 +0000 |
parents | db06d4a18246 |
children | 44b4e8bd759b |
comparison
equal
deleted
inserted
replaced
18135:5114739a4169 | 18136:00cec200ec58 |
---|---|
23 | 23 |
24 import sys | 24 import sys |
25 import dbus | 25 import dbus |
26 import os | 26 import os |
27 | 27 |
28 if len(sys.argv) == 1: | |
29 print "Usage:", sys.argv[0], """<purple-client> [arguments] | |
30 | |
31 Example: | |
32 """, sys.argv[0], "pidgin -d -c /my/home" | |
33 sys.exit(1) | |
34 | |
28 home = os.path.expanduser('~/.purple/') | 35 home = os.path.expanduser('~/.purple/') |
29 for arg in range(1, len(sys.argv[1:])): | 36 for arg in range(1, len(sys.argv[1:])): |
30 if sys.argv[arg] == "-c": | 37 if sys.argv[arg] == "-c": |
31 home = os.path.expanduser(sys.argv[arg + 1]) | 38 home = os.path.expanduser(sys.argv[arg + 1]) |
32 break | 39 break |