Running Randomtest from command line


#1

I have a problem running Randomtest from the command line on Windows 10. I’m using the most recent ChoiceScript build from github.

When I run Randomtest without specifying a number of playthroughs, it goes through once. But when I specify a number (by entering randomtest 1000, for example), it stops and displays the following error:

js: "randomtest.js", line 38: exception from uncaught JavaScript throw: Error: COuldn't parse argument 1: 1000

Running Randomtest in the browser works fine. Using the command line worked a while back on my computer, so I’m not sure what’s changed now - am I doing something wrong, or is this a bug?


#2

What’s the exact command that you’re running?


#3

I go to the game directory, then enter randomtest 1000 (or whatever number I’m after).


#4

The argument is missing. randomtest num=1000


#5

That’s now working. Thank you!