Lines Matching refs:args
457 def reflowFile(filename, args): argument
468 if args.overwrite:
471 outDir = Path(args.outDir).resolve()
474 outFilename = str(outDir / (os.path.basename(filename) + args.suffix))
476 if args.nowrite:
486 args.vuidDict,
487 margin = args.margin,
488 reflow = not args.noflow,
489 nextvu = args.nextvu,
490 maxvu = args.maxvu,
491 check = args.check)
503 if args.nextvu != callback.nextvu:
505 args.nextvu = callback.nextvu
507 args.warnCount += callback.warnCount
509 def reflowAllAdocFiles(folder_to_reflow, args): argument
514 reflowFile(file_path, args)
520 reflowAllAdocFiles(sub_folder, args)
566 args = parser.parse_args() variable
568 setLogFile(True, True, args.logFile)
569 setLogFile(True, False, args.diagFile)
570 setLogFile(False, True, args.warnFile)
572 if args.overwrite:
576 if args.branch is None:
577 (args.branch, errors) = getBranch()
578 if args.branch is None:
580 if args.tagvu:
583 if args.tagvu and args.nextvu is None:
588 if args.branch not in vuidCounts:
589 logErr('Branch', args.branch, 'not in vuidCounts, cannot continue')
590 maxVUID = vuidCounts[args.branch][1]
591 startVUID = vuidCounts[args.branch][2]
592 args.nextvu = startVUID
593 args.maxvu = maxVUID
595 if args.nextvu is not None:
596 logWarn('Tagging untagged Valid Usage statements starting at', args.nextvu)
600 args.warnCount = 0
605 args.vuidDict = {}
608 if not args.files:
611 reflowAllAdocFiles(folder_to_reflow, args)
613 for file in args.files:
614 reflowFile(file, args)
616 if args.warnCount > 0:
617 if args.check == 'FAIL':
618 logErr('Failed with', args.warnCount, 'markup errors detected.\n' +
624 logWarn('Total warning count for markup issues is', args.warnCount)
627 if args.checkVUID:
629 for vuid in sorted(args.vuidDict):
630 found = args.vuidDict[vuid]
638 if args.checkVUID == 'FAIL':
645 if args.nextvu is not None and args.nextvu != startVUID:
647 vuidCounts[args.branch][2] = args.nextvu