From 053604c0464f5d58a5228ad9c4f506671ef9ff28 Mon Sep 17 00:00:00 2001 From: LucasLvy Date: Thu, 4 Aug 2022 12:06:56 +0200 Subject: [PATCH] feat(cli): file is optional --- README.md | 2 +- amarna/command_line.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a60cf15..fbbd7a2 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ Examples of these are: ### Rule names Obtain the names of the currently implemented rules with: ```bash - amarna --show-rules . + amarna --show-rules ``` ### Rule allowlist diff --git a/amarna/command_line.py b/amarna/command_line.py index 8bf04a7..3920c13 100644 --- a/amarna/command_line.py +++ b/amarna/command_line.py @@ -96,6 +96,7 @@ def main() -> int: metavar="-f", type=str, help="the name of the .cairo file or directory with .cairo files to analyze", + nargs="?" ) parser.add_argument("-p", "--print", action="store_true", help="print output")