You'll have to write
erlc +'S' mod.erl
And also to remember that the qutes need to be escaped, so the working
comand line is:
erlc +\'S\' mod.erl
How is
erlc +"'S'" mod.erl
different from
erlc -S mod.erl
(except for being harder to type)?