comparison sat_frontends/jp/cmd_application.py @ 3573:813595f88612

merge changes from main branch
author Goffi <goffi@goffi.org>
date Thu, 17 Jun 2021 13:05:58 +0200
parents 267e4987b58b
children 524856bd7b19
comparison
equal deleted inserted replaced
3541:888109774673 3573:813595f88612
145 def add_parser_options(self): 145 def add_parser_options(self):
146 id_group = self.parser.add_mutually_exclusive_group(required=True) 146 id_group = self.parser.add_mutually_exclusive_group(required=True)
147 id_group.add_argument( 147 id_group.add_argument(
148 "name", 148 "name",
149 nargs="?", 149 nargs="?",
150 help=_("name of the application to stop"), 150 help=_("name of the application to check"),
151 ) 151 )
152 id_group.add_argument( 152 id_group.add_argument(
153 "-i", 153 "-i",
154 "--id", 154 "--id",
155 help=_("identifier of the instance to stop"), 155 help=_("identifier of the instance to check"),
156 ) 156 )
157 157
158 async def start(self): 158 async def start(self):
159 try: 159 try:
160 if self.args.name is not None: 160 if self.args.name is not None: