dj(1): prefix getopt optstring with :

This commit is contained in:
dtb 2024-07-03 15:46:11 -06:00
parent 6548a448c7
commit 3897f44cf8
Signed by: trinity
GPG Key ID: 34C0543BBB6AF81B

View File

@ -279,7 +279,7 @@ int main(int argc, char *argv[]){
int c;
program_name = argv[0];
while((c = getopt(argc, argv, "a:b:B:c:i:hHns:S:o:")) != -1)
while((c = getopt(argc, argv, ":a:b:B:c:i:hHns:S:o:")) != -1)
switch(c){
case 'i': case 'o': i = (c == 'o');
if(optarg[0] == '-' && optarg[1] == '\0'){ /* optarg == "-" */