From: Python-37 <19404655+Python-37@users.noreply.github.com> Date: Mon, 29 Nov 2021 09:56:02 +0000 (+0800) Subject: Add note about `parse_command_line` function X-Git-Tag: v6.2.0b1~28^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c27cfae25a0ddb4c81d3876bbe8b189d4d0fca6;p=thirdparty%2Ftornado.git Add note about `parse_command_line` function --- diff --git a/tornado/options.py b/tornado/options.py index 058f88d16..993e673e7 100644 --- a/tornado/options.py +++ b/tornado/options.py @@ -322,6 +322,10 @@ class OptionParser(object): Note that ``args[0]`` is ignored since it is the program name in `sys.argv`. + + Note that ``logging-related`` flags (such as ``log_to_stderr``, + ``log_file_prefix``) to options will not take effect if they + are setted after this line. We return a list of all arguments that are not parsed as options.