Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
Praxeolitic's user avatar
  • 1,688