alanshaw / alanshaw/markdown-pdf

What's --cwd for?

Đang mở
#127 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
JavaScript
Star
2.9k
Fork
253
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

[Docs](https://github.com/alanshaw/markdown-pdf#optionscwd) don't explain.

I was reviewing https://github.com/alanshaw/markdown-pdf/issues/120 and realised I don't know.

If I wanted to `markdown-pdf` in a different dir, I'd just `cd` to it like

```bash
( cd somewhere && markdown-pdf file.md )
```

Right? Why do we have `--cwd`? It seems the only place it's used to is [as an option to `phantomjs`](https://github.com/alanshaw/markdown-pdf/blob/05985b3431e7c6117ce1c24c33421ab6b1a0b589/index.js#L106), but I don't know what that would do significantly differently with it either.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.