Skip to content

Commit

Permalink
Merge pull request #1350 from kuzudb/cli-fix
Browse files Browse the repository at this point in the history
Change databasePath to positional argument
  • Loading branch information
acquamarin committed Mar 7, 2023
2 parents 02c4f33 + 7cbdd5b commit 947789a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion third_party/spdlog/spdlog/fmt/bundled/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,7 @@ template <typename Context> struct arg_mapper {
std::is_enum<T>::value&& std::is_convertible<T, int>::value &&
!has_format_as<T>::value && !has_formatter<T, Context>::value &&
!has_fallback_formatter<T, char_type>::value)>
FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
-> decltype(std::declval<arg_mapper>().map(
static_cast<underlying_t<T>>(val))) {
return map(static_cast<underlying_t<T>>(val));
Expand Down
4 changes: 2 additions & 2 deletions tools/shell/shell_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ using namespace kuzu::main;

int main(int argc, char* argv[]) {
args::ArgumentParser parser("KuzuDB Shell");
args::Positional<std::string> inputDirFlag(
parser, "databasePath", "Database path.", args::Options::Required);
args::HelpFlag help(parser, "help", "Display this help menu", {'h', "help"});
args::ValueFlag<std::string> inputDirFlag(
parser, "", "Database path.", {'i', "inputDir"}, args::Options::Required);
args::ValueFlag<uint64_t> bpSizeInMBFlag(parser, "",
"Size of buffer pool for default and large page sizes in megabytes", {'d', "defaultBPSize"},
-1u);
Expand Down

0 comments on commit 947789a

Please sign in to comment.