Skip to content

Commit

Permalink
why does the order matter?
Browse files Browse the repository at this point in the history
  • Loading branch information
frederik-uni committed Nov 30, 2024
1 parent de441a4 commit 1b441b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manga_translator/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def _format_action_invocation(self, action: argparse.Action) -> str:


parser = argparse.ArgumentParser(prog='manga_translator', description='Seamlessly translate mangas into a chosen language', formatter_class=HelpFormatter)
subparsers = parser.add_subparsers(dest='mode', required=True, help='Mode of operation')

parser.add_argument('-v', '--verbose', action='store_true', help='Print debug info and save intermediate images in result folder')
parser.add_argument('--attempts', default=0, type=int, help='Retry attempts on encountered error. -1 means infinite times.')
parser.add_argument('--ignore-errors', action='store_true', help='Skip image on encountered error.')
Expand All @@ -90,8 +92,6 @@ def _format_action_invocation(self, action: argparse.Action) -> str:
parser.add_argument('--post-dict', default=None, type=file_path, help='Path to the post-translation dictionary file')
parser.add_argument('--kernel-size', default=3, type=int, help='Set the convolution kernel size of the text erasure area to completely clean up text residues')

subparsers = parser.add_subparsers(dest='mode', required=True, help='Mode of operation')

# Batch mode
parser_batch = subparsers.add_parser('local', help='Run in batch translation mode')
parser_batch.add_argument('-i', '--input', required=True, type=path, nargs='+', help='Path to an image folder')
Expand Down

0 comments on commit 1b441b8

Please sign in to comment.