# HG changeset patch # User Goffi # Date 1585637149 -7200 # Node ID 46f0b388eeeae93b265989ebe287f3b03c0ff6bb # Parent d85b68e44297965a08ace8b56dc7a4cd72095295 jp (blog/edit): --no-publish is a boolean option diff -r d85b68e44297 -r 46f0b388eeea sat_frontends/jp/cmd_blog.py --- a/sat_frontends/jp/cmd_blog.py Mon Mar 30 19:59:17 2020 +0200 +++ b/sat_frontends/jp/cmd_blog.py Tue Mar 31 08:45:49 2020 +0200 @@ -468,6 +468,7 @@ ) self.parser.add_argument( "--no-publish", + action="store_true", help=_('add "publish: False" to metadata'), ) @@ -510,7 +511,7 @@ # and override metadata with command-line arguments self.setMbDataFromArgs(mb_data) - if self.args.no_publish is not None: + if self.args.no_publish: mb_data["publish"] = False # then we create the file and write metadata there, as JSON dict