Skip to content

Commit

Permalink
Feat(cli): file is optional for --show-rules command (crytic#65)
Browse files Browse the repository at this point in the history
* File is optional and added missing checks

Co-authored-by: Filipe Casal <fcasal@users.noreply.github.com>
  • Loading branch information
0xLucqs and fcasal committed Sep 15, 2022
1 parent af0fff3 commit 8707274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amarna/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def main() -> int:
filename = os.path.join(os.getcwd(), filename)

if not os.path.exists(filename):
print("The specified file doesn't exist")
print(f"The specified file doesn't exist: {filename}")
return -1

rule_set_names: List[str] = get_rule_names(args.rules, args.exclude_rules)
Expand Down

0 comments on commit 8707274

Please sign in to comment.