The rest of previous commit for animated image when fetching data and better command line handling

The whole commit for showing an animated image while fetching package details (since I forgot to add some files in the previous commit), and better handling of command line parameters, so that at least it's independent of the order of the flags and it's easier to add other flags in the future.