Skip to content

Commit f16f8d7

Browse files
committed
[core] small improvements to logging options
1 parent b9a196b commit f16f8d7

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/instrumentman/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@
2828
from . import settings
2929

3030

31-
@extra_group("iman", params=None) # type: ignore[misc]
31+
@extra_group(
32+
"iman",
33+
params=None,
34+
context_settings={"auto_envvar_prefix": None}
35+
) # type: ignore[misc]
3236
@version_option()
3337
@logging_option_group()
3438
@logging_levels_constraint()

src/instrumentman/utils.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,26 +136,35 @@ def logging_option_group() -> Callable[[F], F]:
136136
"Options related to the logging functionalities.",
137137
option(
138138
"--protocol",
139+
help=(
140+
"log debug level messages and above, "
141+
"including protocol messages"
142+
),
139143
is_flag=True
140144
),
141145
option(
142146
"--debug",
147+
help="log debug level messages and above",
143148
is_flag=True
144149
),
145150
option(
146151
"--info",
152+
help="log information level messages and above",
147153
is_flag=True
148154
),
149155
option(
150156
"--warning",
157+
help="log warning level messages and above",
151158
is_flag=True
152159
),
153160
option(
154161
"--error",
162+
help="log error level messages and above",
155163
is_flag=True
156164
),
157165
option(
158166
"--critical",
167+
help="log critical error level messages",
159168
is_flag=True
160169
),
161170
option(

0 commit comments

Comments
 (0)