Old scripts: mark them deprecated and make them exit with status 1.

This commit is contained in:
Dominik Pantůček 2025-07-21 15:02:09 +02:00
parent 01491deec3
commit a8e4b3216d
4 changed files with 11 additions and 0 deletions

View file

@ -4,6 +4,7 @@ import argparse
import brmbar
import math
from brmbar import Database
import sys
def main():
parser = argparse.ArgumentParser(usage = "File format: EAN amount total_price name, e.g. 4001242002377 6 167.40 Chio Tortillas")
@ -38,5 +39,7 @@ def main():
print("Total is {}".format(total))
if __name__ == "__main__":
print("!!! THIS PROGRAM NO LONGER WORKS !!!")
sys.exit(1)
main()