Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/libpurple/plugins/startup.py Sun Jun 17 00:08:13 2007 +0000 +++ b/libpurple/plugins/startup.py Sun Jun 17 00:19:12 2007 +0000 @@ -25,6 +25,13 @@ import dbus import os +if len(sys.argv) == 1: + print "Usage:", sys.argv[0], """<purple-client> [arguments] + +Example: + """, sys.argv[0], "pidgin -d -c /my/home" + sys.exit(1) + home = os.path.expanduser('~/.purple/') for arg in range(1, len(sys.argv[1:])): if sys.argv[arg] == "-c":