I have to write an encrypt/decrypt C program and to start off it needs to take 6 CL arguments. This is normally fine for me, but this time the argument order needs to not matter. The flags also always match the argument type. eg. -t will always be before a csv file.
For example, the following are all equivalent ways to run the program and will yield the same behavior:
./encrypt -t mappingfile.csv -m 1 -i words.txt
./encrypt -m 2 -i words.txt -t mappingfile.csv
./encrypt -m 1 -i words_to_encrypt.txt -t mappingfile.csv
I'm not exactly sure how to check for this, any info helps! Thanks!