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

[Bug] MacOS gitversion cli #2839

Closed
EdwardBlair opened this issue Sep 3, 2021 · 2 comments
Closed

[Bug] MacOS gitversion cli #2839

EdwardBlair opened this issue Sep 3, 2021 · 2 comments
Labels

Comments

@EdwardBlair
Copy link

EdwardBlair commented Sep 3, 2021

Describe the bug
Naively following install instructions for MacOS

brew install gitversion

gitversion --help

Unhandled exception. GitVersion.WarningException: Could not parse command line parameter '--help'. If it is the target path, make sure it exists

Expected Behavior

gitversion --help should work, similarly gitversion -h

Actual Behavior

Crash 😢

Steps to Reproduce

See above

Context

I was trying to use gitversion on MacOS

Additionally,

dotnet-gitversion

command not found: dotnet-gitversion

It should be made more clear in docs that if installing through homebrew interface is through gitversion not dotnet-gitversion

Your Environment

  • Version Used: 1.0.0
  • Operating System and version (Windows 10, Ubuntu 18.04): MacOS BigSur 11.4
@EdwardBlair EdwardBlair added the bug label Sep 3, 2021
@EdwardBlair
Copy link
Author

EdwardBlair commented Sep 3, 2021

executable -help seems unusual to me, isn't this normally the same as executable -h -e -l -p?

@asbjornu
Copy link
Member

asbjornu commented Sep 3, 2021

brew install gitversion

gitversion --help

Unhandled exception. GitVersion.WarningException: Could not parse command line parameter '--help'. If it is the target path, make sure it exists

Expected Behavior

gitversion --help should work, similarly gitversion -h

The correct argument is -help, not --help. We know the command line interface is, which is why we're going to completely rewrite it in version 6. See #2275 for details.

Additionally,

dotnet-gitversion

command not found: dotnet-gitversion

It should be made more clear in docs that if installing through homebrew interface is through gitversion not dotnet-gitversion

".NET Global Tool" and "Homebrew" have different headers in the documentation. Doesn't that make it clear that what comes after the header belongs to the header? How would you describe this differently?

Installing GitVersion

@asbjornu asbjornu added question and removed bug labels Mar 3, 2022
@asbjornu asbjornu closed this as completed Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants