Documentation: add link to multifile subcommand example in repo (#691)

This commit is contained in:
Andreas Deininger
2021-12-15 19:44:08 +01:00
committed by GitHub
parent 3c7257d2ae
commit b65367a15a

View File

@@ -28,4 +28,4 @@ You'll see it behaves pretty much like `git`.
## Multi-file App parse code
This example could be made much nicer if it was split into files, one per subcommand. If you simply use shared pointers instead of raw values in the lambda capture, you can tie the lifetime to the lambda function lifetime. CLI11 has a multifile example in its example folder.
This example could be made much nicer if it was split into files, one per subcommand. If you simply use shared pointers instead of raw values in the lambda capture, you can tie the lifetime to the lambda function lifetime. CLI11 has a [multifile example](https://github.com/CLIUtils/CLI11/tree/main/examples/subcom_in_files) in its example folder.