Renaming bind-all option to listen-all (#353)

See discussion here https://docs.google.com/document/d/1tcAvODhdlUUAOJPHoGQB3fWOPmnw3XjK7MVhDRwNUnk/edit#
This commit is contained in:
Charlotte Weaver
2018-10-19 15:26:19 -07:00
committed by GitHub
parent 2a3577f32b
commit efb55a6332

View File

@@ -58,7 +58,7 @@ def run_scanpy(args):
from .scanpy_engine.scanpy_engine import ScanpyEngine
app.data = ScanpyEngine(args.data_directory, layout_method=args.layout, diffexp_method=args.diffexp)
if args.bind_all:
if args.listen_all:
host = "0.0.0.0"
else:
host = "127.0.0.1"
@@ -75,7 +75,7 @@ def main():
parser.add_argument("--flask-debug", action="store_true", help=argparse.SUPPRESS)
parser.add_argument("--no-open", help="Do not launch the webbrowser.", action="store_false", dest="open_browser")
parser.add_argument(
"--bind-all",
"--listen-all",
help="Bind to all interfaces (this makes the server accessible beyond this computer)",
action="store_true")
subparsers = parser.add_subparsers(dest="engine")