# HG changeset patch # User Goffi # Date 1576848222 -3600 # Node ID 2a7dfe43b16122a046a9e1c4001392ee1185ad86 # Parent 98015e4b346e5a7ae8cf57fa4bff8a273dcd9b98 jp (blog): added --language to common publish argument diff -r 98015e4b346e -r 2a7dfe43b161 sat_frontends/jp/cmd_blog.py --- a/sat_frontends/jp/cmd_blog.py Fri Dec 20 12:28:04 2019 +0100 +++ b/sat_frontends/jp/cmd_blog.py Fri Dec 20 14:23:42 2019 +0100 @@ -142,6 +142,11 @@ 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 @@ 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):