summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xLib/cgi.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index 14f1d8f..2ef987e 100755
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -1043,6 +1043,7 @@ def test():
print_form(form)
print_environ()
print_directory()
+ print_arguments()
print_environ_usage()
except:
print "\n\n<PRE>" # Turn off HTML word wrap
@@ -1087,6 +1088,13 @@ def print_directory():
print escape(pwd)
print
+def print_arguments():
+ print
+ print "<H3>Command line Arguments:</H3>"
+ print
+ print sys.argv
+ print
+
def print_environ_usage():
"""Dump a list of environment variables used by CGI as HTML."""
print """