comparison sat_frontends/jp/cmd_pubsub.py @ 3601:b46e9791168f

jp (pubsub/delete): make notification the default, `--notify` option is replaced by `--no-notification`
author Goffi <goffi@goffi.org>
date Thu, 29 Jul 2021 22:51:01 +0200
parents 1709f0a78f50
children 7241ce3b79dd
comparison
equal deleted inserted replaced
3600:1709f0a78f50 3601:b46e9791168f
881 def add_parser_options(self): 881 def add_parser_options(self):
882 self.parser.add_argument( 882 self.parser.add_argument(
883 "-f", "--force", action="store_true", help=_("delete without confirmation") 883 "-f", "--force", action="store_true", help=_("delete without confirmation")
884 ) 884 )
885 self.parser.add_argument( 885 self.parser.add_argument(
886 "-N", "--notify", action="store_true", help=_("notify deletion") 886 "--no-notification", dest="notify", action="store_false",
887 help=_("do not send notification (not recommended)")
887 ) 888 )
888 889
889 async def start(self): 890 async def start(self):
890 if not self.args.item: 891 if not self.args.item:
891 self.parser.error(_("You need to specify an item to delete")) 892 self.parser.error(_("You need to specify an item to delete"))