Skip to content

Allow re-ordering options past subcommands#25

Merged
agocke merged 4 commits intoserdedotnet:mainfrom
agocke:parent-options
Jan 4, 2026
Merged

Allow re-ordering options past subcommands#25
agocke merged 4 commits intoserdedotnet:mainfrom
agocke:parent-options

Conversation

@agocke
Copy link
Contributor

@agocke agocke commented Jan 1, 2026

This pull request introduces several structural and functional improvements to the solution, focusing on reorganizing the project layout, adding a Roslyn analyzer for command-line attribute validation, and making enhancements to the deserialization logic for better handling of command-line arguments and parent options.

* Added support for out-of-order parent options: parent command options
  can now appear after subcommand names (e.g., mycli subcommand
  --parent-option works the same as mycli --parent-option subcommand)
* Moved projects into proper src and test subdirectories
* Added Serde.CmdLine.Analyzers with SERDECMD001: error when
  [CommandParameter] and [CommandGroup] are combined on the same type
@agocke agocke merged commit 9a90a23 into serdedotnet:main Jan 4, 2026
1 check passed
@agocke agocke deleted the parent-options branch January 4, 2026 21:23
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