# src/remoteRF/cli.py
from __future__ import annotations

import argparse
import sys
from typing import Optional, Sequence

from remoteRF.core.acc_login import main as login_main
from remoteRF.core.version import main as version_main
from remoteRF.config.config_cli import main as config_main

def main(args: Optional[Sequence[str]] = None) -> int:
    argv = list(sys.argv[1:] if args is None else args)
    
    # print out argv stuff for debugging
    
    print(f"argc={len(argv)}")
    for i, a in enumerate(argv):
        print(f"argv[{i}] = {a!r}")
    
    