2 ms·
Too late for that. Was on mobile app. program -c # omitted program -cblue # provided program -c blue # omitted This doesn't make sense. How -c blue is omi
by smusamashah 6y ago
Too late for that. Was on mobile app.
program -c # omitted
program -cblue # provided
program -c blue # omitted
This doesn't make sense. How -c blue is omitted while it looks just like an argument for -c
- goto11 6y agoIf the argument to "-c" is optional, the parser doesn't know if "blue" is a an optional argument to "-c" or separate argument to "program". I think the takeaway is to avoid options with optional arguments. If the argument to -c was required, "-c blue" would be fine.