Skip to content

Commit

Permalink
Require --config on cchost (#6694)
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou authored Dec 7, 2024
1 parent fb74199 commit dc3f365
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed

- All definitions in CCF's public headers are now under the `ccf::` namespace. Any application code which references any of these types directly (notably `StartupConfig`, `http_status`, `LoggerLevel`), they will now need to be prefixed with the `ccf::` namespace.
- `cchost` now requires `--config`.

## [6.0.0-dev7]

Expand Down
8 changes: 5 additions & 3 deletions src/host/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ int main(int argc, char** argv)
"platforms) their value is captured in an attestation even if the "
"configuration file itself is unattested.\n"};

std::string config_file_path = "config.json";
app.add_option(
"-c,--config", config_file_path, "Path to JSON configuration file");
std::string config_file_path;
app
.add_option(
"-c,--config", config_file_path, "Path to JSON configuration file")
->required();

ccf::ds::TimeString config_timeout = {"0s"};
app.add_option(
Expand Down

0 comments on commit dc3f365

Please sign in to comment.