19 lines
475 B
Perl
19 lines
475 B
Perl
|
|
Dune should suggest similar aliases when it cannot find one.
|
||
|
|
|
||
|
|
$ cat > dune-project << EOF
|
||
|
|
> (lang dune 3.7)
|
||
|
|
> EOF
|
||
|
|
$ cat > dune << EOF
|
||
|
|
> (rule
|
||
|
|
> (alias foo)
|
||
|
|
> (action
|
||
|
|
> (echo "Hello, world from \"foo\"!")))
|
||
|
|
> EOF
|
||
|
|
|
||
|
|
We have an alias "foo" but let's try to build something misspeled:
|
||
|
|
$ dune build @fou
|
||
|
|
Error: Alias "fou" specified on the command line is empty.
|
||
|
|
It is not defined in . or any of its descendants.
|
||
|
|
Hint: did you mean fmt or foo?
|
||
|
|
[1]
|