The TCmdLine class gives you enhanced processing of command line parameters over the built-in Delphi routines. With it you can:
Access the default command line visible to your running application like normal
Define custom command line argument at runtime. Especially useful when debugging/testing
Check if an argument exists
Get the index of an argument
Get the argument value
And more
You can download the code from the link below. Enjoy! 😎
TCm