From: Yao-Ching Huang Date: Tue, 10 Jan 2023 10:17:57 +0000 (+0800) Subject: gh-100916: Convert argument to appropriate type (GH-100917) X-Git-Tag: v3.12.0a4~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b2f7b2ef0b5421e01efb8c7bee2ef95d3bab77eb;p=thirdparty%2FPython%2Fcpython.git gh-100916: Convert argument to appropriate type (GH-100917) --- diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst index bf6f54a841a7..8aec8e5e5ee0 100644 --- a/Doc/howto/logging-cookbook.rst +++ b/Doc/howto/logging-cookbook.rst @@ -1131,7 +1131,7 @@ each request is handled by a thread: 'context can be used to ' 'populate logs') aa = ap.add_argument - aa('--count', '-c', default=100, help='How many requests to simulate') + aa('--count', '-c', type=int, default=100, help='How many requests to simulate') options = ap.parse_args() # Create the dummy webapps and put them in a list which we can use to select