App: Rename global option --uri -> --target
--uri is unnecessarily generic in that it could mean the URI of anything. --target makes it clearer that operations are to be exectuted on that target.
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
563ec7463a
commit
c19111e5b6
1 changed files with 2 additions and 2 deletions
|
|
@ -261,7 +261,7 @@ class App(Base):
|
|||
parser.add_argument('--distro-id', default=None, help='Distribution ID (default is taken from /etc/os-release)')
|
||||
parser.add_argument('--interactive', choices=['true', 'false', 'auto'], default='true', help='Wait for user input or try to proceed unattended')
|
||||
parser.add_argument('--verbose', action='store_true', default=False, help='Be verbose on stderr about what\'s being done on the distro level')
|
||||
parser.add_argument('--uri', default='local', help='Run commands on this host')
|
||||
parser.add_argument('--target', default='local', help='Run commands on this host')
|
||||
parser.add_argument('--pkg-filter', help='Default filter for all distribution package-related operations')
|
||||
|
||||
async def _run(self, args: argparse.Namespace) -> None:
|
||||
|
|
@ -300,7 +300,7 @@ class App(Base):
|
|||
def exec_context(self) -> str:
|
||||
if self.__exec_context is None:
|
||||
from .lib.ExecContext import ExecContext
|
||||
self.__exec_context = ExecContext.create(self.args.uri, interactive=self.interactive,
|
||||
self.__exec_context = ExecContext.create(self.args.target, interactive=self.interactive,
|
||||
verbose_default=self.verbose)
|
||||
return self.__exec_context
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue