I would like to add option switches to a few commands. Rather than check for them in an ad hoc manner, it would be nice to have a straightforward convenience function to check if a given flag is present in the arguments. The kicker is, if so, it would be ideal to remove it so that subsequent argument checking can proceed unmodified.
I would like to add option switches to a few commands. Rather than check for them in an ad hoc manner, it would be nice to have a straightforward convenience function to check if a given flag is present in the arguments. The kicker is, if so, it would be ideal to remove it so that subsequent argument checking can proceed unmodified.