lib/cmdline: Export next_arg() for being used in modules