diff options
author | Yao-Ching Huang <tom4996131207@gmail.com> | 2023-01-10 10:17:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 10:17:57 (GMT) |
commit | b2f7b2ef0b5421e01efb8c7bee2ef95d3bab77eb (patch) | |
tree | 98bb449c6b5e514173f06f870e774c187eba372b /Doc/howto | |
parent | 35650f25383efce83b62d5273110ab8dcdbcc254 (diff) | |
download | cpython-b2f7b2ef0b5421e01efb8c7bee2ef95d3bab77eb.zip cpython-b2f7b2ef0b5421e01efb8c7bee2ef95d3bab77eb.tar.gz cpython-b2f7b2ef0b5421e01efb8c7bee2ef95d3bab77eb.tar.bz2 |
gh-100916: Convert argument to appropriate type (GH-100917)
Diffstat (limited to 'Doc/howto')
-rw-r--r-- | Doc/howto/logging-cookbook.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst index bf6f54a..8aec8e5 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 |