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

The command line params "--deck" is invalid #46

Open
kangdalei opened this issue Mar 14, 2022 · 4 comments
Open

The command line params "--deck" is invalid #46

kangdalei opened this issue Mar 14, 2022 · 4 comments

Comments

@kangdalei
Copy link

When I run the cmd with no params

>AnkiLink.exe test1.md
Warning: Config File config.toml doesn't exist!
Starting...
file: test1.md
Done.
All done.

It create an Deck in my anki. It's default name is "Export".

But when I run the cmd with " --deck targetDeck"

>AnkiLink.exe test1.md  --deck targetDeck
Warning: Config File config.toml doesn't exist!
Starting...
file: test1.md
Done.
All done.

Nothing happened in my anki.

@Clouder0
Copy link
Owner

try AnkiLink.exe test1.md --deckname targetDeck or AnkiLink.exe test1.md -d targetDeck

if no such deck exists in Anki, AnkiLink will try to create one.

@kangdalei
Copy link
Author

kangdalei commented Mar 15, 2022

AnkiLink.exe test1.md --deckname targetDeck or AnkiLink.exe test1.md -d targetDeck

I have tried these two commands, but still no effect .

Today I read this document test7.md.
I try do. It' ok.

## 法规

[config]  
deck_name = "法规4"  

法的纵向冲突
宪法→法律→行政法规→
1-地方性法规→地方政府规章
2-部门规章

| 法的形式 |制订机关  |名称规律	|
|--|--|--|
| 宪法| 全国人大| |
| 法律| 全国人大及常委会| 《XX 法》
| 行政法规| 国务院|**《XX 条例》** |
|地方法规 |省级、设区的市级人大及常委会|**《XX 条例》** |
| **部门规章** | 国务院各部委| 《XX **办法**》、《XX **规定**》、《XX **实施细则**》|
|**地方政府规章**| 省级、设区的市级政府 | 同上| 


知识产权侵权赔偿数额,应根据:① 侵权人的非法获利;② 参照知识产权许可使用费的倍数;③ 权利人的实际损失;或④ 人民法院根据侵权行为性质和情节裁量确定。其正确适用的顺序应当是( )。(备注:无论适用哪一种,均应包括权利人为制止侵权行为发生的合理开支。)
A  ①②③④ 
B  ③①④②
C  ②①③④ 
D  ③①②④
【答案】D

run the cmd without --deckname targetDeck

>AnkiLink.exe test1.md
Warning: Config File config.toml doesn't exist!
Starting...
file: test1.md
Done.
All done.

It works fine. But occasionally it doesn't work properly. I do not know why. Seems to be related to the format. Only 2 notes were generated the first time.

Anyway, thank you very much!!!

@Clouder0
Copy link
Owner

This is a bit weird. On my computer, everything works just fine. I'll leave this issue open to see if anyone encounters the same problem.

@jupter000
Copy link

我也遇到相同的问题,最后用pyinstaller自行打包解决

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

No branches or pull requests

3 participants