You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parser.add_argument('--content', help = "Boolean flag activating or deactivating the retrieval of identified jurisprudence texts contents from the online database.",
parser.add_argument('--log' , help = "Argument describing where to write logs. Value 0 disables loging. Value 1 shows logs only on console. Value 2 shows logs on console and saves them to a file too.",
choices = [0, 1, 2], default = 2)
args = parser.parse_args()
return args
if __name__ == '__main__':
try:
args = _parse_args()
for val, handler in [(0, logging.NullHandler()), (1, logging.StreamHandler()), (2, logging.FileHandler(LOGGER_FILE_PATH, 'a'))]: