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

hostmanager starts when "-h" or "--help" flags are issued #272

Open
kasiagauza opened this issue Jul 9, 2019 · 1 comment
Open

hostmanager starts when "-h" or "--help" flags are issued #272

kasiagauza opened this issue Jul 9, 2019 · 1 comment

Comments

@kasiagauza
Copy link

Behavior:

Issuing vagarant hostmanager with "-h" or "--help" updates host files on vm(s). It shouldn't. Help message gets printed, anyway.

Step to reproduce:

vagrant hostmanager -h
   Usage: vagrant hostmanager [vm-name]
    --provider provider          Update machines with the specific provider.
    -h, --help                       Print this help
[vagrant-hostmanager:guest] Updating hosts file on the virtual machine ubuntu-c...
[vagrant-hostmanager:guest] Updating hosts file on the virtual machine ub-mg-1...
[vagrant-hostmanager:guest] Updating hosts file on the virtual machine ub-mg-2...

Environment:

  • Vagrant 2.2.5
  • Vagrant Hostmanager 1.8.9
  • Windows 10.0.18362
  • PowerShell Core 6.2.1
@meersjo
Copy link

meersjo commented Feb 19, 2024

Bug confirmed to still exist in 1.8.10.

Good thing this plugin doesn't do anything too destructive, because running when -h has been passed is more than a little unexpected.

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

2 participants