title: Commander.js display help when called with no commands
body: <p>I'm using <a href="https://github.com/tj/commander.js/" rel="noreferrer">commander.js</a> to write a simple node.js program that interacts with an API. All calls require the use of subcommands. For example:</p>
  
  <pre><code>apicommand get
  </code></pre>
  
  <p>Is called as follows:</p>
  
  <pre><code>program
    .version('1.0.0')
    .command('get [accountId]')
    .description('retrieves account info for the specified account')
    .option('-v, --verbose', 'display extended logging information')
    .action(getAccount);
  </code></pre>
  
  <p>What I want to do now is display a default message when <code>apicommand</code> is called without any subcommands. Just like when you call <code>git</code> without a subcommand:</p>
  
  <pre><code>MacBook-Air:Desktop username$ git
  usage: git [--version] [--help] [-C &lt;path&gt;] [-c name=value]
         [--exec-path[=&lt;path&gt;]] [--html-path] [--man-path] [--info-path]
         [-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
         [--git-dir=&lt;path&gt;] [--work-tree=&lt;path&gt;] [--namespace=&lt;name&gt;]
         &lt;command&gt; [&lt;args&gt;]
  
  These are common Git commands used in various situations:
  
  start a working area (see also: git help tutorial)
     clone      Clone a repository into a new directory
     init       Create an empty Git repository or reinitialize an existing one
  ...
  </code></pre>