Command line arguments in a dune project

My main function in dune project has a lot of options like for eg: press 1 for ads 2 numbers press 2 for subtract etc… How do I make them into command line arguments like add 2 3 and it adds the numbers.

I would recommend cmdliner. It may feel unintuitive at first, but it is worth learning how to use it.