Expand description
§CliParse
Parses command-line arguments for workspace configuration.
§RESPONSIBILITIES
§Argument Parsing
- Parse CLI arguments
- Extract workspace file from arguments
- Validate workspace file extension
§ARCHITECTURAL ROLE
§Position in Mountain
- Early initialization component in Binary subsystem
- Provides workspace configuration from CLI
§Dependencies
- std::env: Environment argument access
§Dependents
- Fn() main entry point: Uses parsed CLI args
§SECURITY
§Considerations
- Validate workspace paths to prevent directory traversal
- Ensure only .code-workspace files are processed
§PERFORMANCE
§Considerations
- CLI parsing is fast, minimal overhead
Functions§
- HasWorkspace
Argument - Check if a workspace argument was provided.
- Parse
- Parse CLI arguments and extract workspace path.