Skip to content

Fixed "Comptime Setup, Runtime Use."#2

Merged
00JCIV00 merged 6 commits intomainfrom
fix_comptime_setup_runtime_use
May 29, 2023
Merged

Fixed "Comptime Setup, Runtime Use."#2
00JCIV00 merged 6 commits intomainfrom
fix_comptime_setup_runtime_use

Conversation

@00JCIV00
Copy link
Owner

  • Commands are now set up in Comptime and used in Runtime.
  • Command Validation occurs at Comptime just before Initialization.
  • Initialization, including the addition of Usage/Help message Commands/Options and duplicating the Comptime Command for Runtime use, occurs at Runtime.

00JCIV00 and others added 6 commits May 28, 2023 09:34
- Moved setupAlloc() functionality to init() to ensure Commands/Options are only added just before Runtime Use.
- Moved recursive Validation from validate() to init() to ensure Comptime Setup.
- Changed SetupConfig to InitConfig and added a flag for initializing sub Commands.
@00JCIV00 00JCIV00 merged commit f5e9c6f into main May 29, 2023
@00JCIV00 00JCIV00 deleted the fix_comptime_setup_runtime_use branch May 29, 2023 03:35
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

Comments