Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Update CLI arg builders to check for only args that the subcommand uses: Export/Generate #932

@Jack-Khuu

Description

@Jack-Khuu

🚀 The feature, motivation and pitch

Currently, the CLI arg parsing in torchchat is too general and overzealous; subcommands indirectly access cli args that it doesn't actually use (e.g. BuilderArgs). This results in supporting an extremely bloated argparser

The fix is simple, either update the parsing to

  • not attempt to access fields that a subcommand doesn't directly need
  • not crash the execution when the unused field isn't provided

This issue is specific to the Export and Generate Subcommands

Alternatives

No response

Additional context

No response

RFC (Optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionableItems in the backlog waiting for an appropriate impl/fixtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions