a lot: profiles, some more help strings. partial: exceptions instead of exit()
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
This commit is contained in:
parent
e705af21f5
commit
f09deaa9a5
9 changed files with 190 additions and 106 deletions
9
main.py
9
main.py
|
@ -6,7 +6,7 @@ from flash import cmd_flash
|
|||
from ssh import cmd_ssh
|
||||
from forwarding import cmd_forwarding
|
||||
from telnet import cmd_telnet
|
||||
from logger import setup_logging, verbose_option
|
||||
from logger import logging, setup_logging, verbose_option, get_trace
|
||||
import click
|
||||
from config import config, config_option
|
||||
from wrapper import enforce_wrap, nowrapper_option
|
||||
|
@ -25,7 +25,12 @@ def cli(verbose: bool = False, config_file: str = None, no_wrapper: bool = False
|
|||
|
||||
|
||||
def main():
|
||||
return cli(prog_name='kupferbootstrap')
|
||||
try:
|
||||
return cli(prog_name='kupferbootstrap')
|
||||
except Exception as err:
|
||||
logging.debug(get_trace())
|
||||
logging.fatal(err)
|
||||
exit(1)
|
||||
|
||||
|
||||
cli.add_command(cmd_cache)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue