Open cybardev opened 10 months ago
Given that the complexity of this script has been rising recently, we think it's big enough to warrant using getopt to parse command-line arguments.
getopt
cutefetch --random eyes
UPDATE: flag validation will be done in a separate ticket. For now, the goal is just to have feature parity with the current script but using getopt
Description
Given that the complexity of this script has been rising recently, we think it's big enough to warrant using
getopt
to parse command-line arguments.Changes Requested
getopt
to parse command-line argumentstry to make certain combinations invalid, e.g.cutefetch --random eyes
paired with an eye number. (randomizer to be implemented for #9)Acceptance Criteria
getopt
to parse command-line argumentsrejects invalid flag combinationsResources
getopt
tutorial: https://www.baeldung.com/linux/bash-parse-command-line-argumentsBlockers