Replace deprecated optimist library for yargs and update indentation