title: How can I make bash deal with long param using "getopt" command in mac?
body: <p>I want to make my bash script deal with long parameters. I found <code>getopt</code>, but it isn't supported in OS X. Can anyone tell me why <code>getopt</code> was implemented by BSD, but not GNU? 
  I tried building <code>getopt</code> in GNU C lib, but it failed for my poor skills with Linux. </p>
  
  <p>Did anyone do this work?</p>