Sorry if this is obvious but I'm very novice at Python and Fabric.
I've researched tghe documentation I could find but could find
anything for this particular case. I have a simple fabfile which
includes a task requiring an argument:
@task
def myTask(itsargument):
""" blah """
...
It runs fine if I do:
fab -H host fabfile.myTask:itsargument=value
It works as I want it to. But if I omit the argument, I get a
TypeError exception:
TypeError: myTask() takes exactly 1 argument (0 given)
Which I would like to catch and output usage(). So far, I have not
been able to do so.
--
Charles Gagnon
charlesg at unixrealm.com
_______________________________________________
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user