diff --git a/src/wormhole/cli/cli.py b/src/wormhole/cli/cli.py index 30abe68..c2829d1 100644 --- a/src/wormhole/cli/cli.py +++ b/src/wormhole/cli/cli.py @@ -151,12 +151,13 @@ def _dispatch_command(reactor, cfg, command): cfg.timing.add("exit") if cfg.dump_timing: cfg.timing.write(cfg.dump_timing, stderr) - + # wormhole send (or "wormhole tx") @wormhole.command() @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( "--code", metavar="CODE", @@ -182,6 +183,10 @@ def send(cfg, what, text, code, zeromode): # wormhole receive (or "wormhole rx") @wormhole.command() +@click.option( + "-0", "zeromode", default=False, is_flag=True, + help="enable no-code anything-goes mode", +) @click.option( "--only-text", "-t", is_flag=True, 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" " by the sender."), ) -@click.option( - "-0", "zeromode", is_flag=True, - help="enable no-code anything-goes mode", -) @click.argument( "code", nargs=-1, default=None, # help=("The magic-wormhole code, from the sender. If omitted, the"