blavejr / OrganiseDesktop

Python script that cleans up a messy desktop
MIT License
92 stars 77 forks source link

Simplify Cli Structure #87

Open arcanearronax opened 4 years ago

arcanearronax commented 4 years ago

This change removes the need to parse arguments from sys.argv by using Click in order to handle the command line arguments. The flags that can be used have been modified a bit to support this change.

One notable change to usage is that the extensions to ignore during sorting can be passed with or without the preceding period, multiple --ignore/-i flags can be used to pass multiple extensions (a comma delimited string of extensions can still be passed), and the parsing of extensions is handled in a more pythonic way.