|
|
|
|
|
by inferiorhuman
1010 days ago
|
|
There are no flags in yes(1) ergo there's no need for "flag parsing". yes(1) takes one optional string as input, and that's exactly what argv provides. I'm not sure what you think "flag parsing" is bringing to the table here, but checking the array of command line parameters and accessing an element is pretty far from a hack. If it's more comfortable you can also declare argv as an array of character arrays e.g. char *[], but that won't change the line count. |
|