Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tsoc
hg-misc-tools
Commits
9cb5ca98
Commit
9cb5ca98
authored
Feb 27, 2026
by
one
Browse files
[hytop] Update help messages
parent
9e829f84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
projects/hytop/src/hytop/main.py
projects/hytop/src/hytop/main.py
+7
-3
No files found.
projects/hytop/src/hytop/main.py
View file @
9cb5ca98
...
...
@@ -37,18 +37,18 @@ def root(
"localhost"
,
"--hosts"
,
"-H"
,
help
=
"Comma-separated hosts, e.g. node01,node02.
Default: localhost
"
,
help
=
"Comma-separated hosts, e.g. node01,node02."
,
),
interval
:
float
=
typer
.
Option
(
1.0
,
"--interval"
,
"-n"
,
help
=
"Polling interval in seconds.
Default: 1.0
"
,
help
=
"Polling interval in seconds."
,
),
window
:
float
=
typer
.
Option
(
5.0
,
"--window"
,
help
=
"Single rolling window in seconds.
Default: 5.0
"
,
help
=
"Single rolling window in seconds."
,
),
timeout
:
float
|
None
=
typer
.
Option
(
None
,
...
...
@@ -57,6 +57,10 @@ def root(
),
)
->
None
:
"""Root callback that parses global options and stores them in context."""
if
ctx
.
invoked_subcommand
is
None
:
typer
.
echo
(
ctx
.
get_help
())
raise
typer
.
Exit
()
try
:
host_list
=
parse_csv_strings
(
hosts
,
"--hosts"
)
window_value
=
parse_positive_float
(
str
(
window
),
"--window"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment