Skip to content

fix: shift 2 when consuming 2 arguments#134

Closed
pmalek wants to merge 1 commit intoekalinin:masterfrom
pmalek:master
Closed

fix: shift 2 when consuming 2 arguments#134
pmalek wants to merge 1 commit intoekalinin:masterfrom
pmalek:master

Conversation

@pmalek
Copy link
Copy Markdown

@pmalek pmalek commented May 25, 2022

When using --indent we should shift 2 arguments instead of 1 to avoid the error as shown below.

$ gh-md-toc --indent 2 --no-backup README.md



rm: illegal option -- -
usage: rm [-f | -i] [-dIPRrvWx] file ...
       unlink [--] file
Parsing local markdown file requires access to github API
Please make sure curl is installed and check your network connectivity

@ekalinin
Copy link
Copy Markdown
Owner

Fixed in #132

@ekalinin ekalinin closed this Jul 16, 2022
@ekalinin
Copy link
Copy Markdown
Owner

Thanks, anyway!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants