Fix command line parsing.

1. Proper counting of options.
2. Help is printed when there are too many commands passed.
   ":add" was in priority by mistake.