We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52bce67 commit 1fdf4a5Copy full SHA for 1fdf4a5
opt/cs50/lib/help50/bash
@@ -36,6 +36,12 @@ if [[ "$output" =~ $regex ]]; then
36
exit
37
fi
38
39
+ # If CS50 command
40
+ if [[ "${BASH_REMATCH[1]}" =~ ^(check|style|submit)$ && "$2" == "50" ]]; then
41
+ echo "Did you mean to run \`${BASH_REMATCH[1]}50\`, without a space, instead?"
42
+ exit
43
+ fi
44
+
45
# If backslash instead of forward slash
46
if [[ "${BASH_REMATCH[1]}" =~ ^\.(.*) ]]; then
47
if [[ -f "./${BASH_REMATCH[1]}" ]]; then
0 commit comments