Fixed CLI exiting with 0 when errors occur
Added possibility to ignore unused arguments and loop variables