Commit ca13c65
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 version1 parent aba04da commit ca13c65
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | 204 | | |
206 | 205 | | |
207 | 206 | | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
0 commit comments