Added the validation of command arguments.

Closed #3
Signed-off-by: Dmitriy Pavlenko <dmitriy.pavlenko@sysgears.com>