How to obtain argument not preceded by '-' or '--'
- by Simone Margaritelli
Hi guys, i have a program that needs command line arguments in the form :
./my_program -m256M -tm -t some_other_file
The "some_other_file" argument is not bound to -t (-t it's just another functionality) so i can't take it as the optarg of any of the flags, neither can i assume it is the last argument in the list.
How can i do this?
Thanks