Expected Behavior
Dune init's --public can take names with dashes in them.
Actual Behavior
An error explaining only characters [a-zA-Z0-9_] are allowed.
Reproduction
$ dune init lib mirage_pair --public mirage-pair
dune: option '--public': invalid component name `mirage-pair'
Library names must be non-empty and composed only of the
following
characters: 'A'..'Z', 'a'..'z', '_' or '0'..'9'.
Usage: dune init library [OPTION]… NAME [PATH]
Try 'dune init library --help' or 'dune --help' for more information.
Specifications
- Version of
dune (output of dune --version): 3.6.1
- Version of
ocaml (output of ocamlc --version) 4.14.0
- Operating system (distribution and version): debian 11.6
Expected Behavior
Dune init's
--publiccan take names with dashes in them.Actual Behavior
An error explaining only characters
[a-zA-Z0-9_]are allowed.Reproduction
Specifications
dune(output ofdune --version): 3.6.1ocaml(output ofocamlc --version) 4.14.0