title: Print current command with echo?
body: <p>I have a script that I copyed in
  /usr/bin/ups</p>
  
  <p>In this script I print usage with this:</p>
  
  <pre><code>if [ ! $# == 1 ]; then
     echo "Usage: $0 {start|stop|restart|status}"
     exit
  fi
  </code></pre>
  
  <p>when I run command "ups" I get this:</p>
  
  <blockquote>
    <p>Usage: /usr/bin/ups {start|stop|restart|status}</p>
  </blockquote>
  
  <p>How can I print usage like this:</p>
  
  <blockquote>
    <p>Usage: ups {start|stop|restart|status}</p>
  </blockquote>
  
  <p>The easyest way will be to do this:</p>
  
  <pre><code>if [ ! $# == 1 ]; then
     echo "Usage: ups {start|stop|restart|status}"
     exit
  fi
  </code></pre>
  
  <p>but if some day I change the name of this file the usage text will be the same as before (ups).</p>
  
  <p>Is there a nice way to do this?</p>