in reply to Re: Command Line Options without "-" or "- -"
in thread Command Line Options without "-" or "- -"

If you have a space after the token, and your value is in quotes, the shell should separate them and put each one in a different item of ARGV.... it looks like you have that space, but I could be wrong.

Regardless, split takes an optional third argument which limits how many array items are returned. So put a 2 at the end of your split.

                - Ant
                - Some of my best work - (1 2 3)

  • Comment on Re^2: Command Line Options without "-" or "- -"