"Command line input type options" will be shown if m file is a function.
In the documentation example which you mentioned, the magicsquare.m file is a function.
function m = magicsquare(n)
It seems that your main.m is a script file.
For detail about script vs function, this document will be helpful.