Skip to content

Dune init's --public doesn't allow dashes #7108

@reynir

Description

@reynir

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions