From 291c3cba4bcefcea495cd9793f081db7cb2fbd4d Mon Sep 17 00:00:00 2001 From: Jamin Hitchcock Date: Tue, 9 Dec 2025 21:36:32 -0600 Subject: [PATCH] Don't require name for list commands The name argument is not required when a listing of devices is requested. --- linux_voice_assistant/__main__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux_voice_assistant/__main__.py b/linux_voice_assistant/__main__.py index 6182db2..eee8cd3 100644 --- a/linux_voice_assistant/__main__.py +++ b/linux_voice_assistant/__main__.py @@ -33,7 +33,7 @@ _SOUNDS_DIR = _REPO_DIR / "sounds" async def main() -> None: parser = argparse.ArgumentParser() - parser.add_argument("--name", required=True) + parser.add_argument("--name") parser.add_argument( "--audio-input-device", help="soundcard name for input device (see --list-input-devices)", @@ -118,6 +118,9 @@ async def main() -> None: logging.basicConfig(level=logging.DEBUG if args.debug else logging.INFO) _LOGGER.debug(args) + if not args.name: + parser.error("the following arguments are required: --name") + args.download_dir = Path(args.download_dir) args.download_dir.mkdir(parents=True, exist_ok=True)