Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct BaseName Handling for Spaces in Path
This corrects "basename: extra operand ‘VAL1’" errors as seen below. Also this moves the basename call to only occur when the help text is displayed. > $ '/cygdrive/c/Users/myusername/OneDrive - VAL1 VAL2/Utils/github-markdown-toc/gh-md-toc' --help > /cygdrive/c/Users/myusername/OneDrive - VAL1 VAL2/Utils/github-markdown-toc/gh-md-toc > basename: extra operand ‘VAL1’ > Try 'basename --help' for more information. > GitHub TOC generator (): 0.5.0 > > Usage: > [--insert] src [src] Create TOC for a README file (url or local path) > - Create TOC for markdown from STDIN > --help Show help > --version Show version
- Loading branch information