@mine.command('set')
@click.argument('x', type=float)
@click.argument('y', type=float)
@click.option('ty', '--moored', flag_value='moored', default=True, help='Moored (anchored) mine. Default.')
@click.option('ty', '--drifting', flag_value='drifting', help='Drifting mine.')
def mine_set(x, y, ty):
 click.echo(('Set %s mine at %s,%s' % (ty, x, y)))

@ mine . command ( 'set' ) @ click . argument ( 'x' , type = float ) @ click . argument ( 'y' , type = float ) @ click . option ( 'ty' , '--moored' , flag_value = 'moored' , default = True , help = 'Moored (anchored) mine. Default.' ) @ click . option ( 'ty' , '--drifting' , flag_value = 'drifting' , help = 'Drifting mine.' ) def mine_set ( x , y , ty ) : click . echo ( ( 'Set %s mine at %s,%s' % ( ty , x , y ) ) )
sets a mine at a specific coordinate .