Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P785
Cannot make click display my multiline help
Active
Public
Actions
Authored by
tenma
on Sep 25 2020, 3:55 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
from
pprint
import
pformat
@swh_cli_group.group
(
name
=
"scanner"
,
context_settings
=
CONTEXT_SETTINGS
)
@click.option
(
"-C"
,
"--config-file"
,
default
=
None
,
type
=
click
.
Path
(
exists
=
False
,
dir_okay
=
False
,
path_type
=
str
),
help
=
f
"""YAML configuration file. If absent and cannot load the default one,
default parameters are used."""
,
)
@click.pass_context
def
scanner
(
ctx
,
config_file
:
Optional
[
str
]):
f
"""Software Heritage Scanner tools.
Default config path is {DEFAULT_CONFIG_PATH}.
Default config values are {pformat(DEFAULT_CONFIG)}
"""
Event Timeline
tenma
created this paste.
Sep 25 2020, 3:55 PM
2020-09-25 15:55:38 (UTC+2)
tenma
mentioned this in
D4046: Fix default config file may be absent in scanner cli
.
Log In to Comment