diff options
| author | Mirek Kratochvil <exa.exa@gmail.com> | 2025-10-13 21:49:53 +0200 |
|---|---|---|
| committer | Mirek Kratochvil <exa.exa@gmail.com> | 2025-10-13 21:49:53 +0200 |
| commit | d141fae27990c4ab7ebd7b6ba9f5bcf0292ee32b (patch) | |
| tree | 7471da6e6318b2c5c6b24260b944f6a442691812 | |
| parent | cc3cd394a56b361d039825a89faaebf184f24d05 (diff) | |
| download | patchodon-d141fae27990c4ab7ebd7b6ba9f5bcf0292ee32b.tar.gz patchodon-d141fae27990c4ab7ebd7b6ba9f5bcf0292ee32b.tar.bz2 | |
add full-unlisted patches
| -rw-r--r-- | src/patchodon/__init__.py | 15 |
1 files changed, 12 insertions, 3 deletions
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: @@ -429,6 +431,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", help=( @@ -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( |
