This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,16 @@
When an empty string is passed to `-p`, we get a nice error message.
$ echo '(lang dune 2.0)' > dune-project
$ dune build -p ''
dune: option '--only-packages': Invalid package name: ""
Usage: dune build [OPTION] [TARGET]
Try 'dune build --help' or 'dune --help' for more information.
[1]
This can happen in a list as well:
$ dune build -p 'a,b,'
dune: option '--only-packages': Invalid package name: ""
Usage: dune build [OPTION] [TARGET]
Try 'dune build --help' or 'dune --help' for more information.
[1]