Checking commandline

mymk [-f file] target

How to check is [-f file] on commandline or no?
Cannot to find out ;(
Know that I need to use if.....new in shell sorry

This has nothing to do here where we expect to see code issues...
Is this homework?
Till you give a clear answer this thread is closed

reminder why other threads are closed also...