Update to pylib utils
This commit is contained in:
parent
892d8efb93
commit
117b1af304
2 changed files with 55 additions and 11 deletions
|
|
@ -5,7 +5,7 @@
|
|||
Format given files to a max width.
|
||||
|
||||
Usage:
|
||||
python fmtwidth.py --width 79 ../source/*.md
|
||||
python fmtwidth.py --width 79 ../source/**.md
|
||||
|
||||
"""
|
||||
import glob
|
||||
|
|
@ -23,7 +23,7 @@ if __name__ == "__main__":
|
|||
|
||||
args = parser.parse_args()
|
||||
|
||||
filepaths = glob.glob(args.files)
|
||||
filepaths = glob.glob(args.files, recursive=True)
|
||||
width = args.width
|
||||
|
||||
wrapper = textwrap.TextWrapper(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue