We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e11ac63 commit bca482aCopy full SHA for bca482a
examples/test_fastcore.py
@@ -0,0 +1,8 @@
1
+#!/usr/bin/env python
2
+
3
+from fastcore.script import *
4
+@call_parse
5
+def main(msg:Param("The message", str),
6
+ upper:Param("Convert to uppercase?", store_true)):
7
+ "Print `msg`, optionally converting to uppercase"
8
+ print(msg.upper() if upper else msg)
0 commit comments