Fix the problem with parsing arguments in the submit command
This merge request fixes an off-by-one error in reading arguments passed to the submit command. Let's wait for jalien-root!16 (merged) to be merged so we can rebase this branch and have passing tests here as well.
Edited by Volodymyr Yurchenko