Standardise cli arguments parsing

Now using getopt_long() from the GNU libc