#!/usr/bin/env python3
"""Information overview for command line tools.

Usage:
  nani <command>
  nani -h | --help
  nani --version

Options:
  -h, --help  Print this message and exit.
  --version   Print version info and exit.
"""

from docopt import docopt
import subprocess

if __name__ == '__main__':
    arguments = docopt(__doc__, version='nani 0.2.0')
    subprocess.call(['which', arguments['<command>']])

#!/usr/bin/env python3
"""Information overview for command line tools.

Usage:
  nani <command>
  nani -h | --help
  nani --version

Options:
  -h, --help  Print this message and exit.
  --version   Print version info and exit.
"""

from docopt import docopt
import sys
import subprocess

if __name__ == '__main__':
    arguments = docopt(__doc__, version='nani 0.3.0')
    ret = subprocess.call(['type', arguments['<command>']])
    sys.exit(ret)

Call type instead of which
Call type instead of which
