fix: script args correctly separated
This commit is contained in:
parent
e41de5e45b
commit
1a3878aae8
@ -26,10 +26,12 @@ def attach():
|
|||||||
|
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
@click.option("-script", help="inspect script", default="./examples/uniswap_inspect.py")
|
@click.option(
|
||||||
@click.option("-block_num", help="block number to inspect", default=11931271)
|
"-s", "--script", help="inspect script", default="./examples/uniswap_inspect.py"
|
||||||
@click.option("-rpc", help="rpc address", default="http://111.11.11.111:8545")
|
)
|
||||||
def inspect(script: str, block_num: int, rpc: str):
|
@click.option("-b", "--block-num", help="block number to inspect", default="11931271")
|
||||||
|
@click.option("-r", "--rpc", help="rpc address", default="http://111.11.11.111:8545")
|
||||||
|
def inspect(script: str, block_num: str, rpc: str):
|
||||||
"""Runs mev-inspect scripts through docker services"""
|
"""Runs mev-inspect scripts through docker services"""
|
||||||
check_call(
|
check_call(
|
||||||
[
|
[
|
||||||
@ -39,7 +41,9 @@ def inspect(script: str, block_num: int, rpc: str):
|
|||||||
"mev-inspect",
|
"mev-inspect",
|
||||||
"python",
|
"python",
|
||||||
script,
|
script,
|
||||||
f"-block_number {block_num}",
|
"-block_number",
|
||||||
f"-rpc {rpc}",
|
block_num,
|
||||||
|
"-rpc",
|
||||||
|
rpc,
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user