Update main.cpp

adding management of program parameter