[sr-dev] git:master:f0290969: core: fix crashes and logical errors for cmd line parsing, reported from Thuan Pham