Skip to content

Commit c61f90f

Browse files
committed
Fix click options and arguments
1 parent 9567362 commit c61f90f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

riemann_client/command.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ def main(ctx, host, port, transport_type, timeout, ca_certs):
9696
help="Event tag (multiple)")
9797
@click.option('-l', '--ttl', type=click.FLOAT,
9898
help="Event time to live in seconds")
99-
@click.option('-a', '--attr', '--attribute', type=Pair(), multiple=True,
99+
@click.option('-a', '--attr', '--attribute', 'attribute', type=Pair(), multiple=True,
100100
help="Event attribute (key=value, multiple)")
101-
@click.option('-m', '--metric', '--metric_f', type=click.FLOAT,
101+
@click.option('-m', '--metric', '--metric_f', 'metric_f', type=click.FLOAT,
102102
help="Event metric (uses metric_f)")
103-
@click.option('--echo/--no-echo', default=True,
103+
@click.option('--echo/--no-echo', 'echo', default=True,
104104
help="Echo event object after sending")
105105
@click.pass_obj
106106
def send(transport, time, state, host, description, service, tag, attribute,
@@ -126,7 +126,7 @@ def send(transport, time, state, host, description, service, tag, attribute,
126126

127127

128128
@main.command()
129-
@click.argument('query', 'query')
129+
@click.argument('query')
130130
@click.pass_obj
131131
def query(transport, query):
132132
"""Query the Riemann server"""

0 commit comments

Comments
 (0)