
from docopt import docopt
import subprocess

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


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

  
  from docopt import docopt
+ import sys
  import subprocess
  
  if __name__ == '__main__':
-     arguments = docopt(__doc__, version='nani 0.2.0')
+     arguments = docopt(__doc__, version='nani 0.3.0')
-     subprocess.call(['which', arguments['<command>']])
+     ret = subprocess.call(['type', arguments['<command>']])
+     sys.exit(ret)
  
Call type instead of which
## Code Before:

from docopt import docopt
import subprocess

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

## Instruction:
Call type instead of which
## Code After:

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)
