mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-27 03:32:59 -03:00
Change --autostop-sharing option to --no-autostop-sharing, so that it can default to being disabled (so autostop sharing can be enabled by default)
This commit is contained in:
parent
3c455d6d49
commit
cb598ee697
1 changed files with 5 additions and 5 deletions
|
@ -180,11 +180,11 @@ def main(cwd=None):
|
||||||
)
|
)
|
||||||
# Share args
|
# Share args
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--autostop-sharing",
|
"--no-autostop-sharing",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
dest="autostop_sharing",
|
dest="no_autostop_sharing",
|
||||||
default=True,
|
default=False,
|
||||||
help="Share files: Stop sharing after files have been sent",
|
help="Share files: Continue sharing after files have been sent (default is to stop sharing)",
|
||||||
)
|
)
|
||||||
# Receive args
|
# Receive args
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
@ -233,7 +233,7 @@ def main(cwd=None):
|
||||||
autostop_timer = int(args.autostop_timer)
|
autostop_timer = int(args.autostop_timer)
|
||||||
legacy = bool(args.legacy)
|
legacy = bool(args.legacy)
|
||||||
client_auth = bool(args.client_auth)
|
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
|
data_dir = args.data_dir
|
||||||
disable_csp = bool(args.disable_csp)
|
disable_csp = bool(args.disable_csp)
|
||||||
verbose = bool(args.verbose)
|
verbose = bool(args.verbose)
|
||||||
|
|
Loading…
Add table
Reference in a new issue