separate argument parsing from main
Argument parsing is now handled outside of the main for clarity. This will allow us to use a external lib to handle this process in the futur. Also, it will be easier to add/remove a command-line option.
First step for #61.
Also for #36 (closed).