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

Not getting the expected result while using file command #11

Closed
vijayanandrp opened this issue Mar 8, 2018 · 4 comments
Closed

Not getting the expected result while using file command #11

vijayanandrp opened this issue Mar 8, 2018 · 4 comments

Comments

@vijayanandrp
Copy link

easyblogger file MyBlogPost.md

Kindly provide some more details for the above command. I tried first time it was working good but I am not getting same output after second time. Unable to publish too.

blogger>python easy_blog.py  --blogid 1643794921147254 file myblogpost.md --publish
usage: easyblogger [-h] [-i CLIENTID] [-s SECRET]
                   [-v {INFO,DEBUG,WARNING,ERROR,CRITICAL}]
                   [--blogid BLOGID | --url URL]
                   {get,post,delete,update,file} ...
easyblogger: error: unrecognized arguments: --publish

myblogpost.md

<!--
Title: This is your title
PostId:
Labels: a,b,c
format: markdown
published: false
filters: <path to your installed filter>
-->
# This is my content
@raghur
Copy link
Owner

raghur commented Mar 8, 2018

If you specify file, then there's no --published flag. The publish status should be specified inside your file header published: false|true.

@vijayanandrp
Copy link
Author

I tried that too. But I got error. Could you please provide some sample markdown files?

@raghur
Copy link
Owner

raghur commented Mar 9, 2018

published is parsed as per regex on this line

rePublishStatus = re.compile(

You're getting an error because you're specifying --published with file which isn't allowed. Can you post what the error is? You can turn on verbose logging
-v {INFO,DEBUG,WARNING,ERROR,CRITICAL}, --verbose {INFO,DEBUG,WARNING,ERROR,CRITICAL}
see easyblogger --help

In the sample file above, your filters line is wrong... you should remove that if you don't intend to use any pandoc filters.

@raghur
Copy link
Owner

raghur commented Apr 2, 2018

Closing due to inactivity. If you're still facing an issue then feel free to reopen.

@raghur raghur closed this as completed Apr 2, 2018
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

2 participants