mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-29 09:16:24 -05:00
No longer treating shutdown_timeout as a float, but an int of seconds
This commit is contained in:
parent
882057eafc
commit
f220058c63
@ -42,7 +42,7 @@ def main(cwd=None):
|
|||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('--local-only', action='store_true', dest='local_only', help=strings._("help_local_only"))
|
parser.add_argument('--local-only', action='store_true', dest='local_only', help=strings._("help_local_only"))
|
||||||
parser.add_argument('--stay-open', action='store_true', dest='stay_open', help=strings._("help_stay_open"))
|
parser.add_argument('--stay-open', action='store_true', dest='stay_open', help=strings._("help_stay_open"))
|
||||||
parser.add_argument('--shutdown-timeout', metavar='shutdown_timeout', dest='shutdown_timeout', help=strings._("help_shutdown_timeout"))
|
parser.add_argument('--shutdown-timeout', metavar='shutdown_timeout', dest='shutdown_timeout', default=0, help=strings._("help_shutdown_timeout"))
|
||||||
parser.add_argument('--stealth', action='store_true', dest='stealth', help=strings._("help_stealth"))
|
parser.add_argument('--stealth', action='store_true', dest='stealth', help=strings._("help_stealth"))
|
||||||
parser.add_argument('--debug', action='store_true', dest='debug', help=strings._("help_debug"))
|
parser.add_argument('--debug', action='store_true', dest='debug', help=strings._("help_debug"))
|
||||||
parser.add_argument('--config', metavar='config', default=False, help=strings._('help_config'))
|
parser.add_argument('--config', metavar='config', default=False, help=strings._('help_config'))
|
||||||
@ -56,7 +56,7 @@ def main(cwd=None):
|
|||||||
local_only = bool(args.local_only)
|
local_only = bool(args.local_only)
|
||||||
debug = bool(args.debug)
|
debug = bool(args.debug)
|
||||||
stay_open = bool(args.stay_open)
|
stay_open = bool(args.stay_open)
|
||||||
shutdown_timeout = float(args.shutdown_timeout)
|
shutdown_timeout = int(args.shutdown_timeout)
|
||||||
stealth = bool(args.stealth)
|
stealth = bool(args.stealth)
|
||||||
config = args.config
|
config = args.config
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ def main():
|
|||||||
|
|
||||||
local_only = bool(args.local_only)
|
local_only = bool(args.local_only)
|
||||||
stay_open = bool(args.stay_open)
|
stay_open = bool(args.stay_open)
|
||||||
shutdown_timeout = float(args.shutdown_timeout)
|
shutdown_timeout = int(args.shutdown_timeout)
|
||||||
debug = bool(args.debug)
|
debug = bool(args.debug)
|
||||||
|
|
||||||
# Debug mode?
|
# Debug mode?
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
"systray_download_canceled_message": "The user canceled the download",
|
"systray_download_canceled_message": "The user canceled the download",
|
||||||
"help_local_only": "Do not attempt to use tor: for development only",
|
"help_local_only": "Do not attempt to use tor: for development only",
|
||||||
"help_stay_open": "Keep onion service running after download has finished",
|
"help_stay_open": "Keep onion service running after download has finished",
|
||||||
"help_shutdown_timeout": "Shut down the onion service after N hours",
|
"help_shutdown_timeout": "Shut down the onion service after N seconds",
|
||||||
"help_transparent_torification": "My system is transparently torified",
|
"help_transparent_torification": "My system is transparently torified",
|
||||||
"help_stealth": "Create stealth onion service (advanced)",
|
"help_stealth": "Create stealth onion service (advanced)",
|
||||||
"help_debug": "Log application errors to stdout, and log web errors to disk",
|
"help_debug": "Log application errors to stdout, and log web errors to disk",
|
||||||
|
Loading…
Reference in New Issue
Block a user