Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import argparse
def f(x):
print(x)
class Fusion:
"""
Performs TSDF fusion.
"""
def __init__(self):
"""
Constructor.
"""
parser = argparse.ArgumentParser(description='Process some stuff')
parser.add_argument(
'--blah', type=int, nargs='+',
help='an integer blah')
self.options = parser.parse_args()
def calc(self):
x = f(self.options.blah)
return x
if __name__ == '__main__':
app = Fusion()
result = app.calc()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment