Skip to content

docs: add explanatory comments to main function#2350

Open
dandiest wants to merge 1 commit intorust-lang:mainfrom
dandiest:docs-add-main-comments
Open

docs: add explanatory comments to main function#2350
dandiest wants to merge 1 commit intorust-lang:mainfrom
dandiest:docs-add-main-comments

Conversation

@dandiest
Copy link

@dandiest dandiest commented Feb 7, 2026

Description

This PR adds descriptive comments to the main function in src/main.rs.

Why this is needed

Currently, the main function lacks documentation. Adding these comments helps new contributors and students understand the application's startup flow, specifically:

  • Argument parsing.
  • Compatibility and safety checks.
  • Subcommand dispatching (init/dev).
  • State initialization.

Checklist

  • I have run cargo check and it passes.
  • I have run cargo fmt to ensure correct formatting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant