Michael Grünewald  committed a2dfffc

fix mixed up usage

  • Participants
  • Parent commits dd3c40b
  • Branches default

Comments (0)

Files changed (1)

     parser.add_argument('url', help="base URL of the XML-RPC interface")
     parser.add_argument('method', help="method name")
-    parser.add_argument('parameter', metavar='params', nargs='*',
+    parser.add_argument('params', metavar='parameter', nargs='*',
                         help="parameter, will be interpreted as Python literal if possible")
     args = parser.parse_args()
     proxy = xmlrpclib.ServerProxy(args.url)
-    arguments = [literal_or_string(param) for param in args.parameter]
+    arguments = [literal_or_string(param) for param in args.params]
         result = operator.attrgetter(args.method)(proxy)(*arguments)
     except xmlrpclib.Fault as fault: