Skip to content

Commit

Permalink
Conflict handler for resolving duplicate args (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibanesh authored Nov 22, 2023
1 parent 8c3fa66 commit 11c2d87
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions simuleval/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

import os
import argparse
import importlib
import sys
import logging
import argparse
import os
import sys
from typing import List, Optional

from simuleval.data.dataloader import (
DATALOADER_DICT,
GenericDataloader,
Expand Down Expand Up @@ -147,7 +148,7 @@ def import_user_module(module_path):


def general_parser():
parser = argparse.ArgumentParser()
parser = argparse.ArgumentParser(conflict_handler="resolve")

parser.add_argument(
"--user-dir",
Expand Down

0 comments on commit 11c2d87

Please sign in to comment.