diff --git a/src/patchodon/__init__.py b/src/patchodon/__init__.py index ff96d6d..6d46ab7 100644 --- a/src/patchodon/__init__.py +++ b/src/patchodon/__init__.py @@ -62,6 +62,8 @@ def post_visibility(args, is_head): return "direct" if args.private: return "private" + if args.unlisted: + return "unlisted" if args.public: return "public" if is_head else "unlisted" if args.all_public: @@ -428,6 +430,11 @@ def main(): ), ) visibility = post.add_mutually_exclusive_group() + visibility.add_argument( + "--all-public", + action="store_true", + help="post head status and all patches publicly", + ) visibility.add_argument( "--public", action="store_true", @@ -436,15 +443,17 @@ def main(): ), ) visibility.add_argument( - "--all-public", + "--unlisted", action="store_true", - help="post head status and all patches publicly", + help=( + "post all statuses as unlisted" + ), ) visibility.add_argument( "--private", action="store_true", help=( - "post statuses as private (visible by followers and recipient only)" + "post statuses as private (visible by followers and recipients only)" ), ) visibility.add_argument(