Getting cmdline args using API, added tmp test.