diff options
author | Micah Lee <micah@micahflee.com> | 2020-11-24 21:52:15 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2020-11-24 21:52:15 -0800 |
commit | cb598ee6979aa8b5fc6a719aea1abbffa6ad50e8 (patch) | |
tree | 2f7e7c994ea17378d3c1664ff62c3ffc3c9f6258 | |
parent | 3c455d6d49a2e181916333bb796c5c503f8a0828 (diff) | |
download | onionshare-cb598ee6979aa8b5fc6a719aea1abbffa6ad50e8.tar.gz onionshare-cb598ee6979aa8b5fc6a719aea1abbffa6ad50e8.zip |
Change --autostop-sharing option to --no-autostop-sharing, so that it can default to being disabled (so autostop sharing can be enabled by default)
-rw-r--r-- | cli/onionshare_cli/__init__.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/onionshare_cli/__init__.py b/cli/onionshare_cli/__init__.py index 7361ac9e..dac42514 100644 --- a/cli/onionshare_cli/__init__.py +++ b/cli/onionshare_cli/__init__.py @@ -180,11 +180,11 @@ def main(cwd=None): ) # Share args parser.add_argument( - "--autostop-sharing", + "--no-autostop-sharing", action="store_true", - dest="autostop_sharing", - default=True, - help="Share files: Stop sharing after files have been sent", + dest="no_autostop_sharing", + default=False, + help="Share files: Continue sharing after files have been sent (default is to stop sharing)", ) # Receive args parser.add_argument( @@ -233,7 +233,7 @@ def main(cwd=None): autostop_timer = int(args.autostop_timer) legacy = bool(args.legacy) client_auth = bool(args.client_auth) - autostop_sharing = bool(args.autostop_sharing) + autostop_sharing = not bool(args.no_autostop_sharing) data_dir = args.data_dir disable_csp = bool(args.disable_csp) verbose = bool(args.verbose) |