mirror of
https://github.com/SpyHoodle/PrideFetch.git
synced 2024-11-09 21:25:42 +00:00
Merge pull request #2 from Minion3665/default
Make a bare command run output the classic flag by default
This commit is contained in:
commit
1fc4dd6342
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user