Deprecate the command line interface. (#9485)

---------

Co-authored-by: Philip Hyunsu Cho <chohyu01@cs.washington.edu>
This commit is contained in:
Jiaming Yuan
2023-08-21 06:47:48 +08:00
committed by GitHub
parent 38a3e1b858
commit e6cf7a1278
9 changed files with 59 additions and 32 deletions

View File

@@ -514,7 +514,9 @@ class CLI {
};
} // namespace xgboost
int main(int argc, char *argv[]) {
int main(int argc, char* argv[]) {
LOG(WARNING)
<< "The command line interface is deprecated and will be removed in future releases.";
try {
xgboost::CLI cli(argc, argv);
return cli.Run();