vagrant-hostmanager icon indicating copy to clipboard operation
vagrant-hostmanager copied to clipboard

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

Open kasiagauza opened this issue 6 years ago • 1 comments
trafficstars

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

kasiagauza avatar Jul 09 '19 08:07 kasiagauza

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.

meersjo avatar Feb 19 '24 17:02 meersjo