Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected argument when using swift package plugin generate-manual <tool> #652

Open
2 tasks done
pepicrft opened this issue Jul 16, 2024 · 0 comments
Open
2 tasks done

Comments

@pepicrft
Copy link

I'm trying to use the generate-manual plugin in this repository by using the following command: swift package plugin generate-manual tuist --configuration debug. However, the command fails with an error Error: Unexpected argument 'tuist'. It seems that the argument parsing logic is unable to recognize the tool argument, even though it's defined in it and shows up in the help menu.

ArgumentParser version: 1.4.0
Swift version:

swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0

Checklist

  • If possible, I've reproduced the issue using the main branch of this package (commit: bb10ca8b70fe54c67a1b3adb0f5d58341dc2ed7b)
  • I've searched for existing GitHub issues

Steps to Reproduce

Clone the this repository and run the command swift package plugin generate-manual tuist --configuration debug.

Expected behavior

I'd expect the command to complete successfully.

Actual behavior

You get the following error:

Built package in debug mode
Generating manual for tuist...
Error: Unexpected argument 'tuist'
Usage: generate-manual <tool> [--multi-page] [--date <date>] [--section <section>] [--authors <authors> ...] --output-directory <output-directory>
  See 'generate-manual --help' for more information.
error: 'generate-manual' invocation failed: ''generate-manual' invocation failed with a nonzero exit code: '64'.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant