From d7cb5f822975dbbf63c3c80f507573c41966a3d0 Mon Sep 17 00:00:00 2001 From: Skyler Grey Date: Sun, 22 May 2022 21:23:17 +0100 Subject: [PATCH] Make no flag argument output classic by default --- pridefetch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pridefetch b/pridefetch index 8c30e36..db7b47f 100755 --- a/pridefetch +++ b/pridefetch @@ -100,15 +100,18 @@ def main(): # Draw the chosen flag and system information draw_fetch(args.flag, args.width) - if args.random: + elif args.random: # Choose a flag at random from a list of comma-seperated flags flag_choices = args.random.split(",") draw_fetch(random_choice(flag_choices), args.width) - if args.list: + elif args.list: # List out all the available flags print(f"Available flags:\n{', '.join(flags)}") + else: + draw_fetch("classic", args.width) + if __name__ == "__main__": main()