From f1250eb69836eff5a0bca69b48fbd5efe9d742cc Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 25 Oct 2010 15:23:41 -0400 Subject: [PATCH] add a requested docstring for event_rpcgen.CommandLine.__init__ --- event_rpcgen.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/event_rpcgen.py b/event_rpcgen.py index 4ec20bd0..64c81de5 100755 --- a/event_rpcgen.py +++ b/event_rpcgen.py @@ -1627,6 +1627,11 @@ class Usage(RpcGenError): class CommandLine: def __init__(self, argv): + """Initialize a command-line to launch event_rpcgen, as if + from a command-line with CommandLine(sys.argv). If you're + calling this directly, remember to provide a dummy value + for sys.argv[0] + """ self.filename = None self.header_file = None self.impl_file = None