Skip to content

Commit 69cf42c

Browse files
committed
cryticparser: rename misleading variables
Some group variables had misleading names, probably due to code duplication.
1 parent 82dce8a commit 69cf42c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

crytic_compile/cryticparser/cryticparser.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,33 @@ def init(parser: ArgumentParser) -> None:
1616
parser (ArgumentParser): argparser where the cli flags are added
1717
"""
1818

19-
group_solc = parser.add_argument_group("Compile options")
19+
group_compile = parser.add_argument_group("Compile options")
2020

2121
platforms = get_platforms()
2222

23-
group_solc.add_argument(
23+
group_compile.add_argument(
2424
"--compile-force-framework",
2525
help="Force the compile to a given framework "
2626
f"({','.join([x.NAME.lower() for x in platforms])})",
2727
action="store",
2828
default=DEFAULTS_FLAG_IN_CONFIG["compile_force_framework"],
2929
)
3030

31-
group_solc.add_argument(
31+
group_compile.add_argument(
3232
"--compile-remove-metadata",
3333
help="Remove the metadata from the bytecodes",
3434
action="store_true",
3535
default=DEFAULTS_FLAG_IN_CONFIG["compile_remove_metadata"],
3636
)
3737

38-
group_solc.add_argument(
38+
group_compile.add_argument(
3939
"--compile-custom-build",
4040
help="Replace platform specific build command",
4141
action="store",
4242
default=DEFAULTS_FLAG_IN_CONFIG["compile_custom_build"],
4343
)
4444

45-
group_solc.add_argument(
45+
group_compile.add_argument(
4646
"--ignore-compile",
4747
help="Do not run compile of any platform",
4848
action="store_true",
@@ -232,8 +232,8 @@ def _init_brownie(parser: ArgumentParser) -> None:
232232
Args:
233233
parser (ArgumentParser): argparser where the cli flags are added
234234
"""
235-
group_embark = parser.add_argument_group("Brownie options")
236-
group_embark.add_argument(
235+
group_brownie = parser.add_argument_group("Brownie options")
236+
group_brownie.add_argument(
237237
"--brownie-ignore-compile",
238238
help="Do not run brownie compile",
239239
action="store_true",
@@ -465,16 +465,16 @@ def _init_foundry(parser: ArgumentParser) -> None:
465465
Args:
466466
parser (ArgumentParser): argparser where the cli flags are added
467467
"""
468-
group_hardhat = parser.add_argument_group("foundry options")
469-
group_hardhat.add_argument(
468+
group_foundry = parser.add_argument_group("foundry options")
469+
group_foundry.add_argument(
470470
"--foundry-ignore-compile",
471471
help="Do not run foundry compile",
472472
action="store_true",
473473
dest="foundry_ignore_compile",
474474
default=DEFAULTS_FLAG_IN_CONFIG["foundry_ignore_compile"],
475475
)
476476

477-
group_hardhat.add_argument(
477+
group_foundry.add_argument(
478478
"--foundry-out-directory",
479479
help="Use an alternative out directory (default: out)",
480480
action="store",

0 commit comments

Comments
 (0)