Add color test key

This commit is contained in:
Ferit Yiğit BALABAN 2022-03-30 21:48:54 +03:00
parent e025c8255f
commit c50fc314c1
No known key found for this signature in database
GPG Key ID: BB8494BA65A90842

View File

@ -4,6 +4,7 @@
#
# fetchpy, fetch script alternative to neofetch
import os
import sys
import subprocess as sp
from termcolor import cprint
@ -103,6 +104,13 @@ def read_until_space(text, start_at):
def main():
sys.argv.reverse()
sys.argv.pop()
if len(sys.argv) != 0:
arg = sys.argv.pop()
if arg == '-c' or arg == '--color':
color_test()
padding_count = 29
distro_name = 'Arch GNU/Linux x86_64'