from python import (Python, PythonObject)
fn main():
try:
let ap = Python.import_module("argparse")
let parser = ap.ArgumentParser()
parser.add_argument(...) # this line is painful since key args are not supported yet
...
except e:
print(e.value)
from python import (Python, PythonObject)
fn main():
try:
let ap = Python.import_module("argparse")
let parser = ap.ArgumentParser()
parser.add_argument(...) # this line is painful since key args are not supported yet
...
except e:
print(e.value)