Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command-line option "template" requires a value. #287

Open
lorenzoromagnoli opened this issue Feb 16, 2023 · 3 comments
Open

command-line option "template" requires a value. #287

lorenzoromagnoli opened this issue Feb 16, 2023 · 3 comments

Comments

@lorenzoromagnoli
Copy link

Most time, when running the command to generate the doc with a custom template it fails throwing this error.

If I change the template file and run the command again it works but every time I rerun the script with the same template file I get the same error:

command-line option "template" requires a value.

this is my script
"scripts": { "docs": "jsdoc2md \"./library/*.js\" > \"./docs/api.md\" -t \"./docs/api-template.hbs\"" },

and a very simple template

---
layout: default
title: api
nav_order: 5
---
# MLTK API
* * *
{{>main}}

@75lb
Copy link
Member

75lb commented Feb 16, 2023

If I change the template file and run the command again it works

Hmm, sounds like a cache thing.. how about if you run jsdoc2md with the --no-cache flag?

@75lb
Copy link
Member

75lb commented Mar 5, 2023

Any update?

@lorenzoromagnoli
Copy link
Author

Unfortunately that does not seem to have any effect.

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

No branches or pull requests

2 participants