1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-03 14:03:52 +00:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,4 +28,4 @@ You'll see it behaves pretty much like `git`.
## Multi-file App parse code ## 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.