Переглянути джерело

[+] Add --ask-exit option

Hykilpikonna 2 роки тому
батько
коміт
6911087eab
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      hyfetch/main.py

+ 4 - 0
hyfetch/main.py

@@ -336,6 +336,7 @@ def run():
     parser.add_argument('--debug', action='store_true', help=f'Debug mode')
     parser.add_argument('--debug', action='store_true', help=f'Debug mode')
     parser.add_argument('--test-distro', help=f'Test for a specific distro')
     parser.add_argument('--test-distro', help=f'Test for a specific distro')
     parser.add_argument('--test-print', action='store_true', help=f'Test print distro ascii art only')
     parser.add_argument('--test-print', action='store_true', help=f'Test print distro ascii art only')
+    parser.add_argument('--ask-exit', action='store_true', help=f'Ask before exitting')
 
 
     args = parser.parse_args()
     args = parser.parse_args()
 
 
@@ -385,3 +386,6 @@ def run():
 
 
     # Run
     # Run
     run_neofetch(preset, config.color_align)
     run_neofetch(preset, config.color_align)
+
+    if args.ask_exit:
+        input('Press any key to exit...')