pyret-lang icon indicating copy to clipboard operation
pyret-lang copied to clipboard

Cannot suppress the "The program didn't define any tests" message

Open martindemello opened this issue 3 years ago • 2 comments

I looked through the help, and it seems like pyret -q -k should just display my program's output, but it doesn't work:

$ cat hello.arr 
print("hello world\n")

$ pyret -q -k hello.arr 
hello world
The program didn't define any tests.

martindemello avatar Apr 17 '21 00:04 martindemello

update: pyret -q -e none worked; I think -k should imply -e none since the help text says

  -k, --no-check-mode         Omit check blocks during compilation, and generate a standalone program that  
                              doesn't print testing information at all.

martindemello avatar Apr 17 '21 00:04 martindemello

Thanks! I added the implication you suggested. Now that -e exists, it's silly for -k to only mean “elide check blocks during compilation” and not the same thing as -e none.

jpolitz avatar Apr 19 '21 16:04 jpolitz

@jpolitz I think the above commit means this is fixed?

blerner avatar May 03 '24 18:05 blerner