Skip to content

Instantly share code, notes, and snippets.

@tswicegood
Created October 7, 2010 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tswicegood/615785 to your computer and use it in GitHub Desktop.
Save tswicegood/615785 to your computer and use it in GitHub Desktop.
@task
def test(foo, bar="Nothing", baz="Bazy"):
print "foo: %s" % foo
print "bar: %s" % bar
print "baz: %s" % baz
> fab test:1,baz=''
foo: 1
bar: baz
baz: Bazy
Done.
> fab test:1,'',baz=''
foo: 1
bar:
baz: baz
Done.
> fab test:1,'',baz='something'
foo: 1
bar:
baz: something
Done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment