Closed datianshi closed 8 years ago
The first argument is the filename The second argument is plugin So author would consume os.Agrs[2:]
CFOPS_PLUGINS=true ./out/cfops restore -t backuprestore --dp admin --du admin --omp admin --omu ubuntu -d . --omh 52.90.167.5 --p "--abc abc --cde --abc"
The plugin see os.Agrs[2:] as --abc abc --cde --abc
The first argument is the filename The second argument is plugin So author would consume os.Agrs[2:]
CFOPS_PLUGINS=true ./out/cfops restore -t backuprestore --dp admin --du admin --omp admin --omu ubuntu -d . --omh 52.90.167.5 --p "--abc abc --cde --abc"
The plugin see os.Agrs[2:] as --abc abc --cde --abc