瀏覽代碼

Give the catalog a default path

default_compile_flags
vector-of-bool 5 年之前
父節點
當前提交
d448a1cded
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      src/dds/dds.main.cpp

+ 3
- 3
src/dds/dds.main.cpp 查看文件

@@ -115,9 +115,9 @@ struct cli_catalog {
catalog_path_flag(args::Group& cmd)
: path_flag(cmd,
"catalog-path",
"Path to the catalog database",
"Override the path to the catalog database",
{"catalog", 'c'},
args::Options::Required) {}
dds::dds_data_dir() / "catalog.db") {}
};

struct {
@@ -163,7 +163,7 @@ struct cli_catalog {
int run() {
auto cat = dds::catalog::open(path.Get());
for (const auto& req : requirements.Get()) {
auto id = dds::package_id::parse(req);
auto id = dds::package_id::parse(req);
auto info = cat.get(id);
if (!info) {
throw std::runtime_error(

Loading…
取消
儲存