Skip to content

Commit

Permalink
fix : minor edit in main function
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Sep 13, 2024
1 parent fd8f4c3 commit c19c682
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nafas/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ def main():
parser.add_argument('--version', help='version', nargs="?", const=1)
parser.add_argument('--silent', help='silent mode', nargs="?", const=1)
args = parser.parse_args()
silent_flag = args.silent
if args.version:
print(NAFAS_VERSION)
else:
tprint("Nafas")
tprint("v" + str(NAFAS_VERSION))
if silent_flag:
tprint("Silent Mode")
description_print()
EXIT_FLAG = False
silent_flag = args.silent
while not EXIT_FLAG:
input_data = get_input_standard()
filtered_data = input_filter(input_data)
Expand Down

0 comments on commit c19c682

Please sign in to comment.