All Questions
1 question
3
votes
4
answers
11k
views
Test if command accepts a specific option
What is the preferred way to test if a command takes an option? What are the caveats?
As a motivating example, at login my shell aliases grep to add several --exclude-dir options but this option is ...