cli.py: improve parallelism between send+receive

This commit is contained in:
Brian Warner 2016-06-20 16:06:15 -07:00
parent b1f994e939
commit 940aec7570

View File

@ -156,7 +156,8 @@ def _dispatch_command(reactor, cfg, command):
# 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"