Skip to content

Commit

Permalink
CLEANUP: configuration
Browse files Browse the repository at this point in the history
* Tweak the CLI help output for "tag_expression_protocol"
* Move import statement to TOP of file.
  • Loading branch information
jenisys committed Jun 10, 2023
1 parent c12aa0e commit 8e5575b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions behave/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from __future__ import absolute_import, print_function
import argparse
from collections import namedtuple
import json
import logging
from logging.config import fileConfig as logging_config_fileConfig
Expand Down Expand Up @@ -321,8 +322,8 @@ def positive_number(text):
default=TagExpressionProtocol.default().name.lower(),
help="""\
Specify the tag-expression protocol to use (default: %(default)s).
With "any", tag-expressions v2 and v2 are supported (in auto-detect mode).
With "strict", only tag-expressions v2 is supported (better error diagnostics).
With "any", tag-expressions v1 and v2 are supported (in auto-detect mode).
With "strict", only tag-expressions v2 are supported (better error diagnostics).
""")),

(("-q", "--quiet"),
Expand Down Expand Up @@ -453,8 +454,7 @@ def derive_dest_from_long_option(fixed_options):
return option_name[2:].replace("-", "_")
return None

# -- TEST-BALLOON:
from collections import namedtuple

ConfigFileOption = namedtuple("ConfigFileOption", ("dest", "action", "type"))


Expand Down

0 comments on commit 8e5575b

Please sign in to comment.