Skip to content

--version flag does not exist for publish local #2485

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

Closed
JD557 opened this issue Oct 22, 2023 · 1 comment · Fixed by #2497
Closed

--version flag does not exist for publish local #2485

JD557 opened this issue Oct 22, 2023 · 1 comment · Fixed by #2497
Labels
bug Something isn't working publish command

Comments

@JD557
Copy link
Contributor

JD557 commented Oct 22, 2023

Version(s)
1.0.4

Describe the bug

When trying to publish a file without directives, scala-cli shows the following message:

The `publish-local` sub-command is experimental.
Please bear in mind that non-ideal user experience should be expected.
If you encounter any bugs or have feedback to share, make sure to reach out to the maintenance team at https://github.com/VirtusLab/scala-cli
Using directive publish.name not specified, using workspace directory name repro as default name
[error]  Missing organization for publishing, specify one with --organization or with a '//> using publish.organization' directive
[error]  Missing version for publishing, specify one with --version or with a '//> using publish.version' directive

However, if one adds the --organization and --version flags, scala-cli fails with:

Unrecognized argument: --version

To list all available options, run
  [redacted] publish local --help

To Reproduce

scala-cli --power publish local test.sc and scala-cli --power publish local --organization my.org --version 0.0.1 test.sc on any test.sc file with no directives.

Expected behaviour

Either the --version flag should exist (although I admit that the name is quite overloaded) or the error message should not recommend it.

@MaciejG604
Copy link
Contributor

Indeed the --version flag does not exist since it has been refactored into --project-version in #2310 [more precisely, here]

The error output however, is a bug, thank you for reporting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working publish command
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants