Class CommandParser

Class Documentation

class CommandParser

Static class for parsing command-line arguments and creating command contexts.

The CommandParser class provides a complete command-line argument parsing system for the Gaussian Extractor application. It handles:

  • Command identification and validation

  • Option parsing with type conversion and validation

  • Configuration file integration

  • Help system and documentation generation

  • Error handling and user feedback

Design

This class follows the static utility class pattern - all methods are static and no instances are created. This simplifies usage and ensures consistent parsing behavior throughout the application.

Flow

  1. Command identification (extract, check-done, etc.)

  2. Common option parsing (threads, quiet, etc.)

  3. Command-specific option parsing

  4. Configuration integration and validation

  5. Context finalization and return