python - how to pass command line argument in fabric -


i new in fabric. trying pass 2 command after function of fabfile.py trying that

fab fabfile.py taska /idep/etl/config.xml , lbs 

here taska function.

but not working. throws error "no such file or directory: 'taska'". how can pass arguments? i'm trying forwarding port remote machine.

this documented here. after setup task take arguments, akin this:

fab taska:'/idep/etl/config.xml,lbs'

note: if using fabfile named fabfile.py fab command assumes this, , not need specification (which did w/o using -f flag)

also note: can specify hosts act on, via cli, -h --hosts flags

to better handle on these sorts of things should go through tutorial.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -