diff --git a/skeet/__main__.py b/skeet/__main__.py index a89cdea..3f52e62 100644 --- a/skeet/__main__.py +++ b/skeet/__main__.py @@ -9,11 +9,7 @@ def cli(): args = ArgumentParser(description="Post on Bluesky.") args.add_argument("handle", type=str, help="Your handle, usually {username}.bsky.social") args.add_argument("password", type=str, help="The password with which you log in to the app and site.") - args.add_argument( - "-m", - "--message", - type=str, - required=False, + args.add_argument("message", nargs="*", help="The bare text message that you are about to post, leave empty to read the message from stdin." ) return args.parse_args() @@ -71,6 +67,8 @@ def main(): # Get the message from the cli ... message = args.message + if message: + message = " ".join(message) # ... or stdin ... if not message: message = get_stdin() @@ -81,9 +79,6 @@ def main(): if not message: raise ValueError("You did not supply any message!") - print(message) - exit(0) - # We're only importing atproto here, because it is slow. from atproto import Client