# HG changeset patch # User Sadrul Habib Chowdhury # Date 1182039552 0 # Node ID 00cec200ec589aeb1f6287ebdc3d1f60ef2eeabf # Parent 5114739a4169ce50a9e9aa3bae047afbc53fa606 1. Show the usage of -m in the help message. 2. Show a helpful message if no argument is given to startup.py. diff -r 5114739a4169 -r 00cec200ec58 libpurple/plugins/startup.py --- 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], """ [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": diff -r 5114739a4169 -r 00cec200ec58 pidgin/gtkmain.c --- a/pidgin/gtkmain.c Sun Jun 17 00:08:13 2007 +0000 +++ b/pidgin/gtkmain.c Sun Jun 17 00:19:12 2007 +0000 @@ -372,6 +372,7 @@ " -c, --config=DIR use DIR for config files\n" " -d, --debug print debugging messages to stdout\n" " -h, --help display this help and exit\n" + " -m, --multiple do not ensure single instance\n" " -n, --nologin don't automatically login\n" " -l, --login[=NAME] automatically login (optional argument NAME specifies\n" " account(s) to use, separated by commas)\n" @@ -458,6 +459,7 @@ {"debug", no_argument, NULL, 'd'}, {"help", no_argument, NULL, 'h'}, {"login", optional_argument, NULL, 'l'}, + {"multiple", no_argument, NULL, 'm'}, {"nologin", no_argument, NULL, 'n'}, {"session", required_argument, NULL, 's'}, {"version", no_argument, NULL, 'v'},