@ship.command('move')
@click.argument('ship')
@click.argument('x', type=float)
@click.argument('y', type=float)
@click.option('--speed', metavar='KN', default=10, help='Speed in knots.')
def ship_move(ship, x, y, speed):
 click.echo(('Moving ship %s to %s,%s with speed %s' % (ship, x, y, speed)))

@ ship . command ( 'move' ) @ click . argument ( 'ship' ) @ click . argument ( 'x' , type = float ) @ click . argument ( 'y' , type = float ) @ click . option ( '--speed' , metavar = 'KN' , default = 10 , help = 'Speed in knots.' ) def ship_move ( ship , x , y , speed ) : click . echo ( ( 'Moving ship %s to %s,%s with speed %s' % ( ship , x , y , speed ) ) )
moves ship to the new location x .