Skip to content

Commit

Permalink
Explain post visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
strk authored and ihabunek committed Aug 12, 2024
1 parent 0020209 commit 125626d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion toot/cli/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
from toot import api, config
from toot.cli import AccountParamType, cli, json_option, pass_context, Context
from toot.cli import DURATION_EXAMPLES, VISIBILITY_CHOICES
from toot.tui.constants import VISIBILITY_OPTIONS # move to top-level ?

from toot.cli.validators import validate_duration, validate_language
from toot.entities import MediaAttachment, from_dict
from toot.utils import EOF_KEY, delete_tmp_status_file, editor_input, multiline_input
Expand Down Expand Up @@ -38,7 +40,10 @@
)
@click.option(
"--visibility", "-v",
help="Post visibility",
help="Post visibility: " + "; "
.join("{} = {}".format(visibility, description)
for visibility, caption, description in VISIBILITY_OPTIONS),
default=VISIBILITY_CHOICES[0],
type=click.Choice(VISIBILITY_CHOICES),
)
@click.option(
Expand Down

0 comments on commit 125626d

Please sign in to comment.