cli.py: improve parallelism between send+receive
This commit is contained in:
parent
b1f994e939
commit
940aec7570
|
@ -151,12 +151,13 @@ def _dispatch_command(reactor, cfg, command):
|
||||||
cfg.timing.add("exit")
|
cfg.timing.add("exit")
|
||||||
if cfg.dump_timing:
|
if cfg.dump_timing:
|
||||||
cfg.timing.write(cfg.dump_timing, stderr)
|
cfg.timing.write(cfg.dump_timing, stderr)
|
||||||
|
|
||||||
|
|
||||||
# wormhole send (or "wormhole tx")
|
# wormhole send (or "wormhole tx")
|
||||||
@wormhole.command()
|
@wormhole.command()
|
||||||
@click.option(
|
@click.option(
|
||||||
"zeromode", "-0", default=False, is_flag=True,
|
"-0", "zeromode", default=False, is_flag=True,
|
||||||
|
help="enable no-code anything-goes mode",
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
"--code", metavar="CODE",
|
"--code", metavar="CODE",
|
||||||
|
@ -182,6 +183,10 @@ def send(cfg, what, text, code, zeromode):
|
||||||
|
|
||||||
# wormhole receive (or "wormhole rx")
|
# wormhole receive (or "wormhole rx")
|
||||||
@wormhole.command()
|
@wormhole.command()
|
||||||
|
@click.option(
|
||||||
|
"-0", "zeromode", default=False, is_flag=True,
|
||||||
|
help="enable no-code anything-goes mode",
|
||||||
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
"--only-text", "-t", is_flag=True,
|
"--only-text", "-t", is_flag=True,
|
||||||
help="refuse file transfers, only accept text transfers",
|
help="refuse file transfers, only accept text transfers",
|
||||||
|
@ -196,10 +201,6 @@ def send(cfg, what, text, code, zeromode):
|
||||||
help=("The file or directory to create, overriding the name suggested"
|
help=("The file or directory to create, overriding the name suggested"
|
||||||
" by the sender."),
|
" by the sender."),
|
||||||
)
|
)
|
||||||
@click.option(
|
|
||||||
"-0", "zeromode", is_flag=True,
|
|
||||||
help="enable no-code anything-goes mode",
|
|
||||||
)
|
|
||||||
@click.argument(
|
@click.argument(
|
||||||
"code", nargs=-1, default=None,
|
"code", nargs=-1, default=None,
|
||||||
# help=("The magic-wormhole code, from the sender. If omitted, the"
|
# help=("The magic-wormhole code, from the sender. If omitted, the"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user