mirror of
https://github.com/SpyHoodle/PrideFetch.git
synced 2024-11-09 21:25:42 +00:00
Make no flag argument output classic by default
This commit is contained in:
parent
bb57d32e7a
commit
d7cb5f8229
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user