mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 04:28:01 +08:00
Use print_example()
This commit is contained in:
parent
4f80532991
commit
95a44983db
@ -1,7 +1,6 @@
|
||||
#include "vcpkg_Commands.h"
|
||||
#include "vcpkg_System.h"
|
||||
#include "vcpkg.h"
|
||||
#include <iostream>
|
||||
|
||||
namespace vcpkg
|
||||
{
|
||||
@ -11,9 +10,7 @@ namespace vcpkg
|
||||
if (args.command_arguments.size() == 0)
|
||||
{
|
||||
System::println(System::color::error, "Error: owns requires a pattern to search for as the first argument.");
|
||||
std::cout <<
|
||||
"example:\n"
|
||||
" vcpkg owns .dll\n";
|
||||
print_example("owns .dll");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
StatusParagraphs status_db = database_load_check(paths);
|
||||
|
Loading…
x
Reference in New Issue
Block a user