Forum Discussion

Lagencie's avatar
Lagencie
Frequent Contributor
7 years ago

Python Code wrong in Documentation

https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/command-line.html#remarks

 

Is there a way to report not working code?

 

here in the python section the code a) uses ; for endline which is not necessary b) "Total number of command-line arguments: " + nArgs  <- this can not work as python doesn't auto convert the int to str it has to be str(nArgs) to work

 

Didnt find a way to report this small error so I post it here (not sure if someone can change it

 

Same problem for the next line within the for loop Log.Message("Arg " + str(i) ... not just i