Upload files to "templates/python"

This commit is contained in:
2024-04-24 15:16:03 +02:00
commit ab8f84b11a

16
templates/python/cli.py Normal file
View File

@@ -0,0 +1,16 @@
import argparse
class App:
def __init__(self):
self.args = self.parse_args()
def parse_args(self):
args = argparse.ArgumentParser()
args.add_argument("echo", help="echo the string you use here", default="Hello World !")
return args.parse_args()
def run(self):
print(self.args.echo)
if __name__ == "__main__":
App().run()