gromit icon indicating copy to clipboard operation
gromit copied to clipboard

Propagate maxreps parameter from command line

Open pacohope opened this issue 7 years ago • 1 comments

The repetitions command line option was ignored. It wasn't propagated and the maxreps parameter was hardcoded. I just added enough syntax to accept the parameter on the command line and propagate it down to the Random() function. I also modified the debugging output. Looks like the Debug function doesn't do string interpolation (I was seeing literally %d repetitions) in the debug output, followed by the number.

pacohope avatar Apr 16 '19 08:04 pacohope

I am a bit of a novice in terms of Go and its import mechanism. I rebased the "gromit" import so it pulled from my local $GOSRC. Not really sure how else to do local development. Go seemed to want to pull the code from the master on github. Travis CI failed to build and I suspect that's the reason. Dunno how to do this better.

pacohope avatar Apr 16 '19 08:04 pacohope