Skip to content

Commit

Permalink
Фикс того что необязательный аргумент был обязательным .-.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMorgan3817 committed Jun 25, 2020
1 parent 248cb3d commit 7a6699f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tools/simpleutilites/lineendings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
import argparse

opt = argparse.ArgumentParser()
opt.add_argument('targetDir', help='Каталог с кодом для пропарсинга.')
opt.add_argument('--targetDir', help='Directory to parse.', type=str, default='.',)

args = opt.parse_args()

root = '.'

if args.targetDir:
root = args.targetDir
root = args.targetDir

fnames = []
for path, subdirs, files in os.walk(root):
Expand Down

0 comments on commit 7a6699f

Please sign in to comment.