Skip to content

Commit

Permalink
Fix parsing and display of backend-specific help messages
Browse files Browse the repository at this point in the history
Signed-off-by: Venu Vardhan Reddy Tekula <venu@chaoss.community>
  • Loading branch information
vchrombie committed Aug 13, 2024
1 parent 66a5a06 commit e71ac87
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions perceval/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,9 @@ class BackendCommand:

def __init__(self, *args, debug=False):
parser = self.setup_cmd_parser()

parser.parser.prog = "perceval %s" % self.BACKEND.__name__.lower()

self.parsed_args = parser.parse(*args)
self.debug = debug
self.archive_manager = None
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Fixed missing backend name in usage string
category: fixed
author: Venu Vardhan Reddy Tekula <venu@chaoss.community>
issue: 799
notes: >
The `perceval` command-line tool now correctly displays the backend name in the usage string
when using the `--help` option.

0 comments on commit e71ac87

Please sign in to comment.