Make no flag argument output classic by default

This commit is contained in:
Skyler Grey 2022-05-22 21:23:17 +01:00
parent bb57d32e7a
commit d7cb5f8229
No known key found for this signature in database
GPG Key ID: 24D31D3B1B986F33

View File

@ -100,15 +100,18 @@ def main():
# Draw the chosen flag and system information # Draw the chosen flag and system information
draw_fetch(args.flag, args.width) draw_fetch(args.flag, args.width)
if args.random: elif args.random:
# Choose a flag at random from a list of comma-seperated flags # Choose a flag at random from a list of comma-seperated flags
flag_choices = args.random.split(",") flag_choices = args.random.split(",")
draw_fetch(random_choice(flag_choices), args.width) draw_fetch(random_choice(flag_choices), args.width)
if args.list: elif args.list:
# List out all the available flags # List out all the available flags
print(f"Available flags:\n{', '.join(flags)}") print(f"Available flags:\n{', '.join(flags)}")
else:
draw_fetch("classic", args.width)
if __name__ == "__main__": if __name__ == "__main__":
main() main()