title: Skip functions in shell script with command line arguments
body: <p>I have written shell script with different functions, that I can invoke from the command line like so:</p>
  
  <p><code>bash script.sh -i -b</code></p>
  
  <p>So that will run those two functions and not the other ones in the script. However, I want to reverse this logic, by have the script run every function by default if I just do </p>
  
  <p><code>bash script.sh</code></p>
  
  <p>And if I pass arguments like <code>-i -b</code> I would like to skip over those functions instead. Any help is appreciated!</p>