Skip to content

Commit

Permalink
Move --port args to rpc_args (#189)
Browse files Browse the repository at this point in the history
* Move `--port` args to `rpc_args`; fix formatting

* Set Version: 0.1.66

---------

Co-authored-by: devops <[email protected]>
  • Loading branch information
palinatolmach and devops authored Nov 20, 2023
1 parent 136a305 commit 5e05139
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.65
0.1.66
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "kontrol"
version = "0.1.65"
version = "0.1.66"
description = "Foundry integration for KEVM"
authors = [
"Runtime Verification, Inc. <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/kontrol/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
if TYPE_CHECKING:
from typing import Final

VERSION: Final = '0.1.65'
VERSION: Final = '0.1.66'
4 changes: 2 additions & 2 deletions src/kontrol/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,8 @@ def _parse_test_version_tuple(value: str) -> tuple[str, int | None]:
action='append',
help=(
'Specify contract function(s) to test using a regular expression. This will match functions'
"based on their full signature, e.g., 'ERC20Test.testTransfer(address,uint256)'. This option"
'can be used multiple times to add more functions to test.'
" based on their full signature, e.g., 'ERC20Test.testTransfer(address,uint256)'. This option"
' can be used multiple times to add more functions to test.'
),
)
prove_args.add_argument(
Expand Down
16 changes: 15 additions & 1 deletion src/kontrol/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def rpc_args(self) -> ArgumentParser:
dest='kore_rpc_command',
type=str,
default=None,
help='Custom command to start RPC server',
help='Custom command to start RPC server.',
)
args.add_argument(
'--use-booster',
Expand All @@ -89,4 +89,18 @@ def rpc_args(self) -> ArgumentParser:
action='store_true',
help='Use the booster RPC server instead of kore-rpc.',
)
args.add_argument(
'--port',
dest='port',
type=int,
default=None,
help='Use existing RPC server on named port.',
)
args.add_argument(
'--maude-port',
dest='maude_port',
type=int,
default=None,
help='Use existing Maude RPC server on named port.',
)
return args

0 comments on commit 5e05139

Please sign in to comment.