Skip to content

Commit

Permalink
scripts: codeowners: Disable abbreviations from argparser
Browse files Browse the repository at this point in the history
Long options shouldn't be abbreviated even if unique, fixes a gitlint
warning.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
  • Loading branch information
krish2718 committed Aug 10, 2023
1 parent d163ebe commit af772a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/ci/codeowners.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def init_logs(cli_arg):
def parse_args():
default_range = 'HEAD~1..HEAD'
parser = argparse.ArgumentParser(
allow_abbrev=False,
description="Check for CODEOWNERS file ownership.")
parser.add_argument('-c', '--commits', default=default_range,
help=f'''Commit range in the form: a..[b], default is
Expand Down

0 comments on commit af772a0

Please sign in to comment.