Add command line argument processing

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>