Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix boolean command line options #422

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions src/utils/script_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,16 @@ def generic_script_init(description: str) -> ScriptArgs:
)
parser.add_argument(
"--post-tx",
type=bool,
action="store_true",
help="Flag indicating whether multisend should be posted to safe "
"(requires valid env var `PROPOSER_PK`)",
default=False,
)
parser.add_argument(
"--dry-run",
type=bool,
action="store_true",
harisang marked this conversation as resolved.
Show resolved Hide resolved
help="Flag indicating whether script should not post alerts or transactions. "
"Only relevant in combination with --post-tx True"
"Only relevant in combination with --post-tx"
"Primarily intended for deployment in staging environment.",
default=False,
)
parser.add_argument(
"--min-transfer-amount-wei",
Expand All @@ -59,9 +57,8 @@ def generic_script_init(description: str) -> ScriptArgs:
)
parser.add_argument(
"--ignore-slippage",
type=bool,
action="store_true",
help="Flag for ignoring slippage computations",
default=False,
)
args = parser.parse_args()
return ScriptArgs(
Expand Down
Loading