Skip to content

Commit

Permalink
🚧 figure out why this breaks tests
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Oct 31, 2024
1 parent b365f9d commit 6581f10
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions augur/argparse_.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def run(args):
parser.set_defaults(__command__ = default_command)


def register_commands(parser: argparse.ArgumentParser, commands, command_attribute='__command__'):
def register_commands(parser: argparse.ArgumentParser, commands):
"""
Add subparsers for each command module.
Expand All @@ -56,10 +56,6 @@ def register_commands(parser: argparse.ArgumentParser, commands, command_attribu
# Allow each command to register its own subparser
subparser = command.register_parser(subparsers)

# Add default attribute for command module
if command_attribute:
subparser.set_defaults(**{command_attribute: command})

# Ensure all subparsers format like the top-level parser
subparser.formatter_class = parser.formatter_class

Expand Down
1 change: 0 additions & 1 deletion augur/curate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from . import format_dates, normalize_strings, passthru, titlecase, apply_geolocation_rules, apply_record_annotations, abbreviate_authors, parse_genbank_location, transform_strain_name, rename


SUBCOMMAND_ATTRIBUTE = '_curate_subcommand'
SUBCOMMANDS = [
passthru,
normalize_strings,
Expand Down

0 comments on commit 6581f10

Please sign in to comment.