[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fab-user] Exceptions on tasks
From: |
Charles Gagnon |
Subject: |
[Fab-user] Exceptions on tasks |
Date: |
Fri, 21 Dec 2012 14:52:59 -0500 |
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] Exceptions on tasks,
Charles Gagnon <=