diff --git a/src/pc.scm b/src/pc.scm index 6d7ace1..a27e043 100755 --- a/src/pc.scm +++ b/src/pc.scm @@ -109,7 +109,7 @@ ;; VALIDATIONS ; have they specified the file we're dealing with? -(if (equal? "UNKNOWN" (alist-ref 'comments-file-path cli-options)) +(if (not (alist-ref 'comments-file-path cli-options)) (usage)) ; if we're not killing it diff --git a/src/tests/test_client b/src/tests/test_client index e1a11ba..9ce0b06 100644 --- a/src/tests/test_client +++ b/src/tests/test_client @@ -11,6 +11,11 @@ # source ./test_suite_management.sh +test_1_usage_message() { + usage=$($REPO_ROOT/src/pc) + assert_equals 0 $? +} + # # # test that it doesn't blow up when there aren't any comments test_2_no_comments () {