summaryrefslogtreecommitdiff
path: root/plac/doc/example12.py
diff options
context:
space:
mode:
Diffstat (limited to 'plac/doc/example12.py')
-rw-r--r--plac/doc/example12.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/plac/doc/example12.py b/plac/doc/example12.py
deleted file mode 100644
index 56c65a9..0000000
--- a/plac/doc/example12.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# example12.py
-import plac
-
-@plac.annotations(
- opt=('some option', 'option'),
- args='default arguments',
- kw='keyword arguments')
-def main(opt, *args, **kw):
- if opt:
- yield 'opt=%s' % opt
- if args:
- yield 'args=%s' % str(args)
- if kw:
- yield 'kw=%s' % kw
-
-if __name__ == '__main__':
- for output in plac.call(main):
- print(output)