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

The CLI has contradictory message about directoryOrFile being required #1296

Closed
marcinjahn opened this issue Jun 26, 2024 · 0 comments · Fixed by #1297
Closed

The CLI has contradictory message about directoryOrFile being required #1296

marcinjahn opened this issue Jun 26, 2024 · 0 comments · Fixed by #1297
Milestone

Comments

@marcinjahn
Copy link
Contributor

The directoryOrFile parameter is required for the command-line interface to work, however, the message in the output says that it might be ommited.

Environments:

  • CSharpier Version:
  • Running CSharpier via: cli
  • Operating System: Fedora 40
  • .csharpierrc Settings: defaults
  • .editorconfig Settings: default

Steps to reproduce:
Run dotnet csharpier

Expected behavior:

It should print uniform message about parameters being required or not.

Actual behavior:

It prints:

>: dotnet csharpier
directoryOrFile is required when not piping stdin to CSharpier

dotnet-csharpier

Usage:
  dotnet-csharpier [options] [<directoryOrFile>...]

Arguments:
  <directoryOrFile>  One or more paths to a directory containing c# files to format or a c# file to format. If a path is not specified the current directory is used

# the rest doesn't matter....

Specifically, look at:

If a path is not specified the current directory is used

It isn't true. When path is not specified, the message above gets shown.

belav pushed a commit that referenced this issue Jun 28, 2024
@belav belav added this to the 0.29.0 milestone Jun 28, 2024
pisolofin pushed a commit to pisolofin/csharpier-editorconfig that referenced this issue Aug 1, 2024
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

Successfully merging a pull request may close this issue.

2 participants