diff --git a/sat_frontends/jp/cmd_blog.py b/sat_frontends/jp/cmd_blog.py index e1c5688e..f81597a0 100644 --- a/sat_frontends/jp/cmd_blog.py +++ b/sat_frontends/jp/cmd_blog.py @@ -468,6 +468,7 @@ class Edit(base.CommandBase, BlogPublishCommon, common.BaseEdit): ) self.parser.add_argument( "--no-publish", + action="store_true", help=_('add "publish: False" to metadata'), ) @@ -510,7 +511,7 @@ class Edit(base.CommandBase, BlogPublishCommon, common.BaseEdit): # 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