From bd1904772fa3acb88a5ab2496a59189ecd073118 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Tue, 8 Jan 2019 11:11:37 +0100 Subject: [PATCH] [scripts] Remove unused click options --- bob/devtools/scripts/changelog.py | 6 +----- bob/devtools/scripts/dumpsphinx.py | 6 +----- bob/devtools/scripts/lasttag.py | 6 +----- bob/devtools/scripts/release.py | 6 +----- bob/devtools/scripts/visibility.py | 6 +----- 5 files changed, 5 insertions(+), 25 deletions(-) diff --git a/bob/devtools/scripts/changelog.py b/bob/devtools/scripts/changelog.py index a347f89d..baac1ff0 100644 --- a/bob/devtools/scripts/changelog.py +++ b/bob/devtools/scripts/changelog.py @@ -16,11 +16,7 @@ from ..changelog import parse_date from ..release import get_gitlab_instance -@click.command(context_settings=dict( - ignore_unknown_options=True, - allow_extra_args=True, - ), - epilog=''' +@click.command(epilog=''' Examples: 1. Generates the changelog for a single package using merge requests: diff --git a/bob/devtools/scripts/dumpsphinx.py b/bob/devtools/scripts/dumpsphinx.py index 61caece0..b022e8a3 100644 --- a/bob/devtools/scripts/dumpsphinx.py +++ b/bob/devtools/scripts/dumpsphinx.py @@ -13,11 +13,7 @@ from . import bdt from ..log import verbosity_option -@click.command(context_settings=dict( - ignore_unknown_options=True, - allow_extra_args=True, - ), - epilog=''' +@click.command(epilog=''' Examples: 1. Dumps objects documented in python 3.x: diff --git a/bob/devtools/scripts/lasttag.py b/bob/devtools/scripts/lasttag.py index d1e2aa27..d8129bd1 100644 --- a/bob/devtools/scripts/lasttag.py +++ b/bob/devtools/scripts/lasttag.py @@ -12,11 +12,7 @@ from ..changelog import get_last_tag, parse_date from ..release import get_gitlab_instance -@click.command(context_settings=dict( - ignore_unknown_options=True, - allow_extra_args=True, - ), - epilog=''' +@click.command(epilog=''' Examples: 1. Get the last tag information of the bob/bob package diff --git a/bob/devtools/scripts/release.py b/bob/devtools/scripts/release.py index 251539fc..c6816744 100644 --- a/bob/devtools/scripts/release.py +++ b/bob/devtools/scripts/release.py @@ -14,11 +14,7 @@ from ..release import release_bob, parse_and_process_package_changelog from ..release import release_package, wait_for_pipeline_to_finish from ..release import get_gitlab_instance -@click.command(context_settings=dict( - ignore_unknown_options=True, - allow_extra_args=True, - ), - epilog=''' +@click.command(epilog=''' Examples: 1. Releases a single package: diff --git a/bob/devtools/scripts/visibility.py b/bob/devtools/scripts/visibility.py index 67321c26..290f50d8 100644 --- a/bob/devtools/scripts/visibility.py +++ b/bob/devtools/scripts/visibility.py @@ -14,11 +14,7 @@ from ..log import verbosity_option from ..release import get_gitlab_instance -@click.command(context_settings=dict( - ignore_unknown_options=True, - allow_extra_args=True, - ), - epilog=''' +@click.command(epilog=''' Examples: 1. Check the visibility of a package you can access -- GitLab