cemu-vcpkg/toolsrc/src/commands_owns.cpp

21 lines
645 B
C++
Raw Normal View History

#include "vcpkg_Commands.h"
#include "vcpkg_System.h"
#include "vcpkg.h"
namespace vcpkg
{
void owns_command(const vcpkg_cmd_arguments& args, const vcpkg_paths& paths)
{
args.check_max_arg_count(1);
if (args.command_arguments.size() == 0)
{
System::println(System::color::error, "Error: owns requires a pattern to search for as the first argument.");
2016-09-22 00:40:23 -07:00
print_example("owns .dll");
exit(EXIT_FAILURE);
}
StatusParagraphs status_db = database_load_check(paths);
search_file(paths, args.command_arguments[0], status_db);
exit(EXIT_SUCCESS);
}
}