changeset 23090:94f3d88b5dc5

Part of a patch from ubuntu to remove entropy from purple-remote when using --help or -h arguments
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 22 May 2008 03:02:39 +0000
parents cf3511f4bc07
children 815caea3bdd0
files libpurple/purple-remote
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)