##// END OF EJS Templates
Add global options for setting encoding and encodingmode
Matt Mackall -
r3774:a88e0208 default
parent child Browse files
Show More
@@ -2315,6 +2315,8 b' globalopts = ['
2315 2315 ('', 'config', [], _('set/override config option')),
2316 2316 ('', 'debug', None, _('enable debugging output')),
2317 2317 ('', 'debugger', None, _('start debugger')),
2318 ('', 'encoding', util._encoding, _('set the charset encoding')),
2319 ('', 'encodingmode', util._encodingmode, _('set the charset encoding mode')),
2318 2320 ('', 'lsprof', None, _('print improved command execution profile')),
2319 2321 ('', 'traceback', None, _('print traceback on exception')),
2320 2322 ('', 'time', None, _('time how long the command takes')),
@@ -2867,6 +2869,10 b' def dispatch(args):'
2867 2869
2868 2870 try:
2869 2871 cmd, func, args, options, cmdoptions = parse(u, args)
2872 if options["encoding"]:
2873 util._encoding = options["encoding"]
2874 if options["encodingmode"]:
2875 util._encodingmode = options["encodingmode"]
2870 2876 if options["time"]:
2871 2877 def get_times():
2872 2878 t = os.times()
General Comments 0
You need to be logged in to leave comments. Login now