]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100916: Convert argument to appropriate type (GH-100917)
authorYao-Ching Huang <tom4996131207@gmail.com>
Tue, 10 Jan 2023 10:17:57 +0000 (18:17 +0800)
committerGitHub <noreply@github.com>
Tue, 10 Jan 2023 10:17:57 +0000 (10:17 +0000)
Doc/howto/logging-cookbook.rst

index bf6f54a841a7b9d175a0f7678c6dbfd545bac8c4..8aec8e5e5ee08cc7b89bdde60bf92d646299e517 100644 (file)
@@ -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