finish cmdline