Fix --data-list error message with dub describe (#2195)
It said you can also use --data-0, but that actually will not make it
work. You need to still specify --data-list and optionally add -data-0
to make it 0 separated instead of line separated.
1 parent 2790812 commit 4b5309b87164de8f5b8c6a86a6336bae42d08ba5
@Jan Jurzitza Jan Jurzitza authored on 5 Dec 2021
GitHub committed on 5 Dec 2021
Showing 1 changed file
View
4
source/dub/project.d
case "pre-build-environments":
case "post-build-environments":
case "pre-run-environments":
case "post-run-environments":
enforce(false, "--data="~requestedData~" can only be used with --data-list or --data-0.");
enforce(false, "--data="~requestedData~" can only be used with `--data-list` or `--data-list --data-0`.");
break;
 
case "requirements":
enforce(false, "--data=requirements can only be used with --data-list or --data-0. Use --data=options instead.");
enforce(false, "--data=requirements can only be used with `--data-list` or `--data-list --data-0`. Use --data=options instead.");
break;
 
default: break;
}