pg.py: handle command-less invocation cleanly
authorW. Trevor King <wking@tremily.us>
Tue, 11 Dec 2012 16:49:53 +0000 (11:49 -0500)
committerW. Trevor King <wking@tremily.us>
Tue, 11 Dec 2012 16:51:20 +0000 (11:51 -0500)
commite96504f5e6f345137ceba5070ad7619ee13ab0e3
treec4bcc69614afde12038aa17f3783aafa846e9b4b
parent8e10f59d36ea9c619241efaf3213156406dd74f9
pg.py: handle command-less invocation cleanly

This avoids:

  Traceback (most recent call last):
    File "/.../pg.py", line 202, in <module>
      func_args = _inspect.getargspec(args.func).args
  AttributeError: 'Namespace' object has no attribute 'func'
bin/pg.py