5 ms·
Those are how one differentiates flags from arguments, which is a separate problem.
by lotyrin 14y ago
Those are how one differentiates flags from arguments, which is a separate problem.
- pjmlp 14y agoKind of. If your flag is for a path, you can assume everything up to the next flag is a path name. myprog -filename here is my path with spaces -another_flag Of course this depends on how the shell gives the arguments to the program. On the other hand, there is no excuse why some GUI programs cannot handle spaces.
- lotyrin 14y agocp path1 path2 So, that's just one file?