Reverse parser for argv in javascript