Part of a patch from ubuntu to remove entropy from purple-remote when

Thu, 22 May 2008 03:02:39 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Thu, 22 May 2008 03:02:39 +0000
changeset 23255
04ec20052078
parent 23254
ac3254d32589
child 23256
35a4e2bbfa46

Part of a patch from ubuntu to remove entropy from purple-remote when
using --help or -h arguments

libpurple/purple-remote file | annotate | diff | comparison | revisions
--- a/libpurple/purple-remote	Thu May 22 02:51:12 2008 +0000
+++ b/libpurple/purple-remote	Thu May 22 03:02:39 2008 +0000
@@ -218,7 +218,7 @@
                     return purple.__getattr__(command)(*methodparams)
             show_help()
 
-if len(sys.argv) == 1:
+if len(sys.argv) == 1 or sys.argv[1] == "--help" or sys.argv == "-h":
     show_help()
 elif (sys.argv[1] == "--help" or sys.argv[1] == "-h"):
     show_help(True)

mercurial