From 0cbc94d01d7be616329a9f70df15733818b4590c Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Sat, 16 Dec 2023 13:08:34 -0500 Subject: [PATCH] feat: add short options `-v` and `-O` to the CLI (#3695) this commit adds `-v` and `-O` as aliases for `--verbose` and `--optimize`, respectively. --- vyper/cli/vyper_compile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vyper/cli/vyper_compile.py b/vyper/cli/vyper_compile.py index 4f88812fa0..ec4681a814 100755 --- a/vyper/cli/vyper_compile.py +++ b/vyper/cli/vyper_compile.py @@ -111,6 +111,7 @@ def _parse_args(argv): ) parser.add_argument("--no-optimize", help="Do not optimize", action="store_true") parser.add_argument( + "-O", "--optimize", help="Optimization flag (defaults to 'gas')", choices=["gas", "codesize", "none"], @@ -125,6 +126,7 @@ def _parse_args(argv): type=int, ) parser.add_argument( + "-v", "--verbose", help="Turn on compiler verbose output. " "Currently an alias for --traceback-limit but "