mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-28 16:15:24 +02:00
App: Support --verbose
Add the --verbose global option, which is made available as the App.verbose property. Some functions still take a verbose parameter, but the type of these parameters is converted from bool to bool|None. The idea is that, if they are None, their verbosity falls back to the global default. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
525fa34387
commit
67a2931f5e
5 changed files with 28 additions and 11 deletions
|
|
@ -12,7 +12,6 @@ class CmdRebootRequired(Cmd): # export
|
|||
|
||||
def add_arguments(self, parser: ArgumentParser) -> None:
|
||||
super().add_arguments(parser)
|
||||
parser.add_argument('--verbose', default=False, action='store_true', help='Be chatty about the check')
|
||||
|
||||
async def _run(self, args: Namespace) -> None:
|
||||
return await self.distro.reboot_required(verbose=args.verbose)
|
||||
return await self.distro.reboot_required()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue