Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit cde5dbf

Browse files
authored
Upgrade all dependencies (#842)
1 parent 0a0d581 commit cde5dbf

6 files changed

Lines changed: 18241 additions & 10870 deletions

File tree

ext/cli11

Submodule cli11 updated 141 files

ext/fmt

Submodule fmt updated 128 files

ext/json/json.hpp

Lines changed: 18229 additions & 10860 deletions
Large diffs are not rendered by default.

ext/pybind11

Submodule pybind11 updated 204 files

ext/spdlog

Submodule spdlog updated 82 files

src/main.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ int main(int argc, const char* argv[]) {
163163
app.get_formatter()->column_width(40);
164164
app.set_help_all_flag("-H,--help-all", "Print this help message including all sub-commands");
165165

166-
app.add_option("--verbose", verbose, "Verbosity of logger output", true)
166+
app.add_option("--verbose", verbose, "Verbosity of logger output")
167+
->capture_default_str()
167168
->ignore_case()
168169
->check(CLI::IsMember({"trace", "debug", "info", "warning", "error", "critical", "off"}));
169170

@@ -172,11 +173,13 @@ int main(int argc, const char* argv[]) {
172173
->required()
173174
->check(CLI::ExistingFile);
174175

175-
app.add_option("-o,--output", output_dir, "Directory for backend code output", true)
176+
app.add_option("-o,--output", output_dir, "Directory for backend code output")
177+
->capture_default_str()
176178
->ignore_case();
177-
app.add_option("--scratch", scratch_dir, "Directory for intermediate code output", true)
179+
app.add_option("--scratch", scratch_dir, "Directory for intermediate code output")
180+
->capture_default_str()
178181
->ignore_case();
179-
app.add_option("--units", units_dir, "Directory of units lib file", true)->ignore_case();
182+
app.add_option("--units", units_dir, "Directory of units lib file")->capture_default_str()->ignore_case();
180183

181184
auto host_opt = app.add_subcommand("host", "HOST/CPU code backends")->ignore_case();
182185
host_opt->add_flag("--c", c_backend, "C/C++ backend ({})"_format(c_backend))->ignore_case();
@@ -254,8 +257,7 @@ int main(int argc, const char* argv[]) {
254257
auto codegen_opt = app.add_subcommand("codegen", "Code generation options")->ignore_case();
255258
codegen_opt->add_option("--datatype",
256259
data_type,
257-
"Data type for floating point variables",
258-
true)->ignore_case()->check(CLI::IsMember({"float", "double"}));
260+
"Data type for floating point variables")->capture_default_str()->ignore_case()->check(CLI::IsMember({"float", "double"}));
259261
codegen_opt->add_flag("--force",
260262
force_codegen,
261263
"Force code generation even if there is any incompatibility");

0 commit comments

Comments
 (0)