Class CommandParser¶
Defined in File command_system.h
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¶
Command identification (extract, check-done, etc.)
Common option parsing (threads, quiet, etc.)
Command-specific option parsing
Configuration integration and validation
Context finalization and return