Merge pull request #2 from Minion3665/default

Make a bare command run output the classic flag by default
This commit is contained in:
Madeleine 2022-05-22 21:36:40 +01:00 committed by GitHub
commit 1fc4dd6342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()