jp (blog): added --language to common publish argument
This commit is contained in:
parent
e795f0958c
commit
1eee84c8f3
1 changed files with 7 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue