Skip to content

Commit

Permalink
Fix cosmetic issues in translate
Browse files Browse the repository at this point in the history
  • Loading branch information
astonzhang committed Jan 12, 2022
1 parent c7aa08e commit c168ec5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions d2lbook/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def translate():
parser = argparse.ArgumentParser(description='Translate to another language')
# Example usage: d2lbook translate --commit 35a64ab chapter_optimization chapter_computer-vision/anchor.md
parser.add_argument('source', nargs='+', help='chapter dirs or markdown files to activate')
parser.add_argument('source', nargs='+', help='chapter directories or markdown files to activate')
parser.add_argument('--commit', default='latest', help='the commit of the base repo')
args = parser.parse_args(sys.argv[2:])

Expand All @@ -27,7 +27,7 @@ def translate():
if sec_name.endswith(".md"):
trans.translate(os.path.join(source, sec_name))
else:
logging.error(f'Invalid Directory {source}: Please provide'
logging.error(f'Invalid directory {source}: Please provide'
'a valid chapter name for translation')
else:
trans.translate(source)
Expand Down

0 comments on commit c168ec5

Please sign in to comment.