NXBT-858: add command line parsing