From c50fc314c1d97f903f14ebdfc413828a04ecc537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Wed, 30 Mar 2022 21:48:54 +0300 Subject: [PATCH] Add color test key --- fetchpy | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fetchpy b/fetchpy index d98202d..0e6ab6c 100755 --- a/fetchpy +++ b/fetchpy @@ -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'