Re order everything that concerns "hasargs" parsing and detached it from sg_opts to be reusable in mc and long options