From f76b82879b3fd8c69011e10971ee483f5abbd828 Mon Sep 17 00:00:00 2001 From: Robin David Date: Thu, 28 Nov 2024 22:57:16 +0100 Subject: [PATCH] add show default features --- src/qbindiff/__main__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/qbindiff/__main__.py b/src/qbindiff/__main__.py index 10fd99e..751d514 100644 --- a/src/qbindiff/__main__.py +++ b/src/qbindiff/__main__.py @@ -233,6 +233,7 @@ def load_program( default=DEFAULT_FEATURES, multiple=True, metavar="", + show_default=True, help=help_features, ) @click.option( @@ -420,6 +421,11 @@ def main( ) return 1 + if not features: + logging.error("no feature provided") + return 1 + + with Progress() as progress: if not quiet: load_bar_total = 2 @@ -456,10 +462,6 @@ def main( logging.error(e) exit(1) - if not features: - logging.error("no feature provided") - exit(1) - try: # Check for the 'all' option if "all" in set(features):