jp (blog): added --language to common publish argument

This commit is contained in:
Goffi 2019-12-20 14:23:42 +01:00
commit 1eee84c8f3

View file

@ -142,6 +142,11 @@ class BlogPublishCommon(object):
action="append",
help=_("tag (category) of your item"),
)
self.parser.add_argument(
"-l",
"--language",
help=_("language of the item (ISO 639 code)"),
)
comments_group = self.parser.add_mutually_exclusive_group()
comments_group.add_argument(
@ -182,6 +187,8 @@ class BlogPublishCommon(object):
mb_data['tags'] = self.args.tag
if self.args.title is not None:
mb_data["title"] = self.args.title
if self.args.language is not None:
mb_data["language"] = self.args.language
class Set(base.CommandBase, BlogPublishCommon):