CLI entry point and argument parsing #27

Open
opened 2026-04-07 20:24:47 +00:00 by austin · 0 comments
Owner

Implement the localcode CLI entry point.

  • localcode with no args: start a session in the current directory
  • localcode --project /path: start a session in the specified directory
  • localcode --config /path/to/localcode.toml: use a specific config file
  • localcode --model /path/to/model.gguf: override the model path (useful for quick testing)
  • --verbose flag for debug logging
  • --version flag
  • Clean error messages when the model file doesn't exist or can't be loaded

Use argparse (stdlib) — no need for click/typer for this scope.

Implement the `localcode` CLI entry point. - `localcode` with no args: start a session in the current directory - `localcode --project /path`: start a session in the specified directory - `localcode --config /path/to/localcode.toml`: use a specific config file - `localcode --model /path/to/model.gguf`: override the model path (useful for quick testing) - `--verbose` flag for debug logging - `--version` flag - Clean error messages when the model file doesn't exist or can't be loaded Use argparse (stdlib) — no need for click/typer for this scope.
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
austin/localcode#27
No description provided.