Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94b3463 commit 4e3a277Copy full SHA for 4e3a277
1 file changed
Doc/tools/mkhowto
@@ -64,14 +64,13 @@ PERL_BINARY = "perl"
64
PYTHON_BINARY = "python"
65
66
67
-def usage(options):
68
- print __doc__ % options
+def usage(options, file):
+ print >>file, __doc__ % options
69
70
def error(options, message, err=2):
71
- sys.stdout = sys.stderr
72
- print message
73
- print
74
- usage(options)
+ print >>sys.stderr, message
+ print >>sys.stderr
+ usage(options, sys.stderr)
75
sys.exit(2)
76
77
@@ -151,7 +150,7 @@ class Options:
151
150
self.formats = list(self.ALL_FORMATS)
152
self.dvips_safe = "ps" in self.formats
153
elif opt in ("-H", "--help"):
154
- usage(self)
+ usage(self, sys.stdout)
155
sys.exit()
156
elif opt == "--iconserver":
157
self.icon_server = arg
0 commit comments