@ship.command('shoot')
@click.argument('ship')
@click.argument('x', type=float)
@click.argument('y', type=float)
def ship_shoot(ship, x, y):
 click.echo(('Ship %s fires to %s,%s' % (ship, x, y)))

@ ship . command ( 'shoot' ) @ click . argument ( 'ship' ) @ click . argument ( 'x' , type = float ) @ click . argument ( 'y' , type = float ) def ship_shoot ( ship , x , y ) : click . echo ( ( 'Ship %s fires to %s,%s' % ( ship , x , y ) ) )
makes ship fire to x .