Skip to content

cp: compile without clap (for nushell) #5203

Open

Description

@tertsdiepraam

Context: nushell/nushell#10097

All the utils include a clap-based argument parser. If we want to expose the internals of the utils, it should also be possible to only compile the internals without the argument parser and the clap dependency. This is a request from nushell, where they want to reuse our utils with their own argument parsing.

So, we should introduce a feature (e.g. called "cli", "parser" or "uumain", I'm not sure), which enables the uumain function and the clap parser. This should probably be enabled by default (nushell can then include it with default-features = false).

To compile entirely without clap, uucore also needs to be able to compile without clap. This issue is therefore also relevant: #5202.

Activity

  1. changed the title [-]`cp`: compile without `clap` support[/-] [+]`cp`: compile without `clap`[/+] on Aug 24, 2023
  2. changed the title [-]`cp`: compile without `clap`[/-] [+]`cp`: compile without `clap` (for nushell)[/+] on Aug 24, 2023
  3. linked a pull request that will close this issuecp: compile without clap (for nushell) #5358on Oct 5, 2023
  4. stale commented on Sep 14, 2026

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions