[cs631apue] handling multiple command options

mseaton mseaton at stevens.edu
Fri Oct 7 00:18:15 EDT 2016


Hello,
I am using getopt, works well for single command options which I have 
implemented. However I am having a lot of difficulty handling multiple 
options like ls -la for example. How to combine these two options 
together to produce the desired output?

another question I have in regard to getopt is how does it handle file 
names? I have separately written a function which handles all 
combinations of file name operands without command options.

Thanks
Marlon


More information about the cs631apue mailing list