main: fixup parameter parsing for user program