aacebedo / machination

An helper to create virtual machines using Docker and Vagrant
2 stars 2 forks source link

[discuss] syntax of --guestinterface opt ? #32

Closed mzemb closed 9 years ago

mzemb commented 9 years ago

machination create -h IMHO adding an interface and adding a sharedfolder should have the same syntax (and separator, but guestinterface still uses the pipe). --guestinterface GUESTINTERFACE, -i GUESTINTERFACE Network interface to add to the new machine <hostinterface|ip_addr|mac_addr|hostname> | <hostinterface|ip_addr|mac_addr> --sharedfolder SHAREDFOLDER SHAREDFOLDER, -s SHAREDFOLDER SHAREDFOLDER Shared folder between the new machine and the host

mzemb commented 9 years ago

Don't know how to use option. I tried:

--guestinterface eth0 172.17.0.200 which fails with "Machination create: error: argument template: invalid choice: '172.17.0.200' (choose from 'v:1.0', ':1.0', ':1.0', ':1.0')"

--guestinterface "eth0|172.17.0.200" which fails with "Unable to create machine instance 'XXX': object of type 'int' has no len()."

mzemb commented 9 years ago

Note, correct usage with current version: --guestinterface "eth0|192.168.0.100|00:01:02:03:04:05"

mzemb commented 9 years ago

Todo: 1) clarify usage (two possible) 2) usage of pipe 3) mac addr should be optionnal

aacebedo commented 9 years ago

Done