When you put ':' after a character, the function expects one (or more) arguments, each arguments preceded by a space.
So you have to type :
yourprogram -t yourargument
To get your(s) argument(s) you have to declare :
extern char * optarg;
which will contain the arguments.
Wish it could help you,