add command line parameters support with getopt

Change-Id: I868be875065819b85ebc8775c8a485707bd173ac
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>