diff --git a/cli/Session.cpp b/cli/Session.cpp index bf23cbc5..d9239899 100644 --- a/cli/Session.cpp +++ b/cli/Session.cpp @@ -130,6 +130,10 @@ namespace cli make_function([this](const Path &path) -> void { Get(path); })); AddCommand("get", " downloads file to ", make_function([this](const Path &path, const LocalPath &dst) -> void { Get(dst, path); })); + AddCommand("get-id", " get object by id", + make_function([this](mtp::u32 id) -> void { Get(mtp::ObjectId(id)); })); + AddCommand("get-id", " get object by id to ", + make_function([this](mtp::u32 id, const LocalPath &dst) -> void { Get(dst, mtp::ObjectId(id)); })); AddCommand("get-thumb", " downloads thumbnail for file", make_function([this](const Path &path) -> void { GetThumb(path); }));