Closed kyllingstad closed 5 years ago
I've pushed a commit to this branch where I've resolved the merge conflicts, but for some reason, the pull request doesn't get updated. Possibly a bad cache or some subsystem which is down on GitHub. I'll merge it manually.
This builds on the work in PR #1 and adds the global
--log-level
option specified in Confluence, as well as a--verbose
/-v
option which is a shortcut for--log-level=info
.While doing this, I also made a new, general abstraction for global options in the CLI application framework:
cli_option_set
. I've refactored the--version
option to use this abstraction too.~I've targeted this on the PR #1 branch so that all you see is the stuff I've added. I'll retarget it on
master
once #1 is merged.~ I'll also update the simulation progress monitor for the "run" commands (#3, #4) once the present PR has been merged, so it logs its output at levelinfo
, as specified. This would complete the fixing of issue #6.I can't really give any examples yet since I based this on a version of the code that doesn't actually log anything. But the help message looks like this:
Note: This PR depends on the changes in open-simulation-platform/cse-core#314, so anyone who wants to compile this need to update
conanfile.txt
to usecse-core/0.4.0@osp/feature_110-user-controllable-logging
instead of master.