#!/usr/bin/env python3
"""Start a lab session with fresh administrator authentication."""
import sys
from seclab import main

try:
    if sys.argv[1:2] not in (['exec'], ['report-copy'], ['report-pdf']):
        raise ValueError('This helper only opens lab sessions or exports reports.')
    main(session_auth=True)
except Exception as exc:
    print(str(exc), file=sys.stderr)
    sys.exit(1)
