[Tutor] Command lines args (getopt)

Justin Heath justin at unixremedies.com
Wed Aug 13 15:26:11 EDT 2003


All,

I am getting upwards of single character arguments that make sense for a 
program I am writing. I am using getopt to parse the arguments. My 
question is I would like to use two character short options such as -lu 
(for local user) and -ru (for remote user). I know I can acomplish this 
(well almost) with long opts such as --ru, but I am trying to stay away 
from that. Any suggestions?

Thanks,
Justin





More information about the Tutor mailing list