Skip to content

Commit

Permalink
add show default features
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDavid committed Nov 28, 2024
1 parent 1eecf0d commit f76b828
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/qbindiff/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ def load_program(
default=DEFAULT_FEATURES,
multiple=True,
metavar="<feature>",
show_default=True,
help=help_features,
)
@click.option(
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit f76b828

Please sign in to comment.