vagrant-hostmanager
vagrant-hostmanager copied to clipboard
hostmanager starts when "-h" or "--help" flags are issued
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
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.