Skip to content

Commit

Permalink
code.misc>modify.refactor: change defualt value of "checktag -c", and…
Browse files Browse the repository at this point in the history
… some help message modify
  • Loading branch information
pwnfan committed May 19, 2023
1 parent 112eeda commit a72d352
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tagmark/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ def convert(
)


@cli.command(help="verify every tag has a definition")
@cli.command(help="check every tag has a definition")
@click.option(
"-t",
"--tagmark-data-file-path",
type=click.Path(exists=True, file_okay=True, dir_okay=False),
help="the tagmark data file path, which may be the value the `-o` parameter of the `convert` sub command",
help="the tagmark data file path, which may be the output file generated by the `-o` parameter of the `convert` sub command",
)
@click.option(
"-d",
Expand All @@ -137,17 +137,17 @@ def convert(
"-c",
"--condition-json-path",
type=click.Path(exists=True, file_okay=True, dir_okay=False),
default=None,
default=Path(__file__).absolute().parent.joinpath("condition_example.json"),
show_default=True,
help="json file containing the condition for fitlering TagmarkItem, here only the value of `tags` field in the file will be used, and this condition is a determinate ban condition",
help="json file containing the condition for fitlering TagmarkItem, here only the value of `tags` field in the file will be used, and this condition must be a ban condition",
)
@click.option(
"-a",
"--add-no-def-tag",
type=bool,
default=True,
show_default=True,
help="if set to `True`, the tags in the input file(bookmark file) without a tag definition will be added into the tag definition file, with a placeholder value specified by `added_missing_tag_value_placeholder`. If set to `Flase` and any tag without definition exists, an error will be raised",
help="if set to `True`, a new tags definition file will be generated, which includes tags in the old tag definition file, and tags in the tagmark data file(specified by -t) without a tag definition. The latter tags are added as keys with a placeholder value specified by `-p / --no-def-tag-value-placeholder` parameter. If set to `False` and any tag without definition exists, an error will be raised",
)
@click.option(
"-p",
Expand Down

0 comments on commit a72d352

Please sign in to comment.