Regularize token use.

Mainly using the 'not' and 'not_eq' tokens.
This commit is contained in:
2024-10-11 10:54:14 +02:00
parent 08b4834d9e
commit c0c6959774
2 changed files with 8 additions and 8 deletions

View File

@@ -74,7 +74,7 @@ int command_list(int argc, char *argv[]) {
std::vector<std::string> ingredients, tags;
int opt;
while((opt = getopt(argc, argv, "i:t:")) != -1) {
while((opt = getopt(argc, argv, "i:t:")) not_eq -1) {
switch(opt) {
case 'i':
ingredients = split(optarg, ",");