Skip to content

Commit

Permalink
Remove support for 'PW_FORMAT' environment variable
Browse files Browse the repository at this point in the history
This highlights an issue with 'sphinx-click' [1]. Said issue is resolved
with sphinx-click 1.4.1 but that's not available on Fedora, so we simply
ignore this for now.

[1] click-contrib/sphinx-click#26

Signed-off-by: Stephen Finucane <[email protected]>
  • Loading branch information
stephenfin committed Nov 9, 2018
1 parent 52e39cb commit 29bd2a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions git_pw/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ def format_options(original_function=None, headers=None):
"""Shared output format options."""

def _format_options(f):
f = click.option('--format', '-f', 'fmt', envvar='PW_FORMAT',
default=None,
f = click.option('--format', '-f', 'fmt', default=None,
type=click.Choice(['simple', 'table', 'csv']),
help="Output format. Defaults to the value of "
"'git config pw.server' else 'table'.")(f)
Expand Down

0 comments on commit 29bd2a7

Please sign in to comment.