jp (blog/edit): --no-publish is a boolean option
This commit is contained in:
parent
bd94d2620d
commit
09cb00b5b1
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue