cs50 / help50-deprecated

This is help50, a command-line tool that helps students understand error messages.
https://cs50.harvard.edu/
GNU General Public License v3.0
62 stars 64 forks source link

Travis #249

Closed kzidane closed 7 years ago

kzidane commented 7 years ago

based on #248!

cc @crossroads1112

dmalan commented 7 years ago

@kzidane, want to remove help50 itself from this PR, which @crossroads1112 has since rewritten?

kzidane commented 7 years ago

@dmalan, rebased.

@crossroads1112, doesn't seem to be handling non-existent commands (e.g., help50 foo where foo is not a command)?

$ help50 foo
Traceback (most recent call last):
  File "/home/travis/virtualenv/python2.7.9/bin/help50", line 126, in <module>
    main()
  File "/home/travis/virtualenv/python2.7.9/bin/help50", line 43, in main
    proc = ptyprocess.PtyProcess.spawn(sys.argv[1:])
  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/ptyprocess/ptyprocess.py", line 208, in spawn
    'executable: %s.' % command)
ptyprocess.ptyprocess.FileNotFoundError: The command was not found or was not executable: foo.

https://travis-ci.org/cs50/help50/jobs/247704083#L217