From 14c2cca6cfa4845fe8754043173f85cf2a8f58f3 Mon Sep 17 00:00:00 2001 From: kamangir Date: Sat, 15 Jun 2024 18:29:35 -0700 Subject: [PATCH] blueness argparse ending refactor - kamangir/bolt#746 --- ferfereh/__init__.py | 2 +- ferfereh/__main__.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ferfereh/__init__.py b/ferfereh/__init__.py index 94f789a..d353c7b 100644 --- a/ferfereh/__init__.py +++ b/ferfereh/__init__.py @@ -4,4 +4,4 @@ DESCRIPTION = f"{ICON} 3d-printed graffiti." -VERSION = "1.141.1" +VERSION = "1.142.1" diff --git a/ferfereh/__main__.py b/ferfereh/__main__.py index 1f63e6e..b319053 100644 --- a/ferfereh/__main__.py +++ b/ferfereh/__main__.py @@ -1,6 +1,7 @@ import argparse from ferfereh import NAME, VERSION, DESCRIPTION from ferfereh.logger import logger +from blueness.argparse.generic import ending parser = argparse.ArgumentParser(NAME, description=f"{NAME}-{VERSION}") @@ -35,7 +36,6 @@ print(f"{NAME}-{VERSION}") success = True else: - logger.error(f"-{NAME}: {args.task}: command not found.") + success = None -if not success: - logger.error(f"-{NAME}: {args.task}: failed.") +ending(logger, NAME, args.task, success)