def main()

This commit is contained in:
Tobias Diekershoff 2023-01-07 18:55:00 +01:00
parent bbedb65dcc
commit 247ffdbdc3
1 changed files with 4 additions and 2 deletions

View File

@ -98,8 +98,7 @@ class BrewBlocklist():
if self.outputfile:
sys.stdout = orig_stdout
out_file.close()
if __name__ == '__main__':
def main():
parser = argparse.ArgumentParser()
parser.add_argument('-c', '--config',
dest='configfile',
@ -134,3 +133,6 @@ if __name__ == '__main__':
brew.collect_ingrediens()
brew.clean_list()
brew.serve_meal()
if __name__ == '__main__':
main()