@@ -28,12 +28,12 @@ constexpr const auto kCommonCommandsGroup = "Common Commands";
2828constexpr const auto kInferenceGroup = " Inference" ;
2929constexpr const auto kModelsGroup = " Models" ;
3030constexpr const auto kEngineGroup = " Engines" ;
31- constexpr const auto kSystemGroup = " System " ;
31+ constexpr const auto kSystemGroup = " Server " ;
3232constexpr const auto kSubcommands = " Subcommands" ;
3333} // namespace
3434
3535CommandLineParser::CommandLineParser ()
36- : app_(" Cortex .cpp CLI" ),
36+ : app_(" \n Cortex .cpp CLI\n " ),
3737 download_service_{std::make_shared<DownloadService>()},
3838 model_service_{ModelService (download_service_)},
3939 engine_service_{EngineService (download_service_)} {}
@@ -55,12 +55,12 @@ bool CommandLineParser::SetupCommand(int argc, char** argv) {
5555
5656 SetupSystemCommands ();
5757
58- app_.add_flag (" --verbose" , log_verbose, " Verbose logging " );
58+ app_.add_flag (" --verbose" , log_verbose, " Get verbose logs " );
5959
6060 // Logic is handled in main.cc, just for cli helper command
6161 std::string path;
62- app_.add_option (" --config_file_path" , path, " Configuration file path" );
63- app_.add_option (" --data_folder_path" , path, " Data folder path" );
62+ app_.add_option (" --config_file_path" , path, " Configure .rc file path" );
63+ app_.add_option (" --data_folder_path" , path, " Configure data folder path" );
6464
6565 // cortex version
6666 auto cb = [&](int c) {
@@ -70,7 +70,7 @@ bool CommandLineParser::SetupCommand(int argc, char** argv) {
7070 CLI_LOG (" default" );
7171#endif
7272 };
73- app_.add_flag_function (" -v,--version" , cb, " Cortex version" );
73+ app_.add_flag_function (" -v,--version" , cb, " Get Cortex version" );
7474
7575 CLI11_PARSE (app_, argc, argv);
7676 if (argc == 1 ) {
@@ -91,9 +91,9 @@ bool CommandLineParser::SetupCommand(int argc, char** argv) {
9191 commands::CheckNewUpdate (commands::kTimeoutCheckUpdate );
9292 latest_version.has_value () &&
9393 *latest_version != CORTEX_CPP_VERSION) {
94- CLI_LOG (" \n A new release of cortex is available: "
94+ CLI_LOG (" \n New Cortex release available: "
9595 << CORTEX_CPP_VERSION << " -> " << *latest_version);
96- CLI_LOG (" To upgrade , run: " << commands::GetRole ()
96+ CLI_LOG (" To update , run: " << commands::GetRole ()
9797 << commands::GetCortexBinary ()
9898 << " update" );
9999 }
@@ -115,7 +115,7 @@ bool CommandLineParser::SetupCommand(int argc, char** argv) {
115115void CommandLineParser::SetupCommonCommands () {
116116 auto model_pull_cmd = app_.add_subcommand (
117117 " pull" ,
118- " Download a model by URL (or HuggingFace ID) "
118+ " Download models by HuggingFace Repo/ModelID "
119119 " See built-in models: https://huggingface.co/cortexso" );
120120 model_pull_cmd->group (kCommonCommandsGroup );
121121 model_pull_cmd->usage (" Usage:\n " + commands::GetCortexBinary () +
@@ -138,7 +138,7 @@ void CommandLineParser::SetupCommonCommands() {
138138 }
139139 });
140140
141- auto run_cmd = app_.add_subcommand (" run" , " Shortcut to start a model" );
141+ auto run_cmd = app_.add_subcommand (" run" , " Shortcut: pull, start & chat with a model" );
142142 run_cmd->group (kCommonCommandsGroup );
143143 run_cmd->usage (" Usage:\n " + commands::GetCortexBinary () +
144144 " run [options] [model_id]" );
@@ -215,7 +215,7 @@ void CommandLineParser::SetupModelCommands() {
215215 });
216216
217217 auto list_models_cmd =
218- models_cmd->add_subcommand (" list" , " List all models locally " );
218+ models_cmd->add_subcommand (" list" , " List all local models " );
219219 list_models_cmd->add_option (" filter" , cml_data_.filter , " Filter model id" );
220220 list_models_cmd->add_flag (" -e,--engine" , cml_data_.display_engine ,
221221 " Display engine" );
@@ -232,7 +232,7 @@ void CommandLineParser::SetupModelCommands() {
232232 });
233233
234234 auto get_models_cmd =
235- models_cmd->add_subcommand (" get" , " Get info of {model_id} locally " );
235+ models_cmd->add_subcommand (" get" , " Get a local model info by ID " );
236236 get_models_cmd->usage (" Usage:\n " + commands::GetCortexBinary () +
237237 " models get [model_id]" );
238238 get_models_cmd->group (kSubcommands );
@@ -251,7 +251,7 @@ void CommandLineParser::SetupModelCommands() {
251251 });
252252
253253 auto model_del_cmd =
254- models_cmd->add_subcommand (" delete" , " Delete a model by ID locally " );
254+ models_cmd->add_subcommand (" delete" , " Delete a local model by ID" );
255255 model_del_cmd->usage (" Usage:\n " + commands::GetCortexBinary () +
256256 " models delete [model_id]" );
257257 model_del_cmd->group (kSubcommands );
@@ -272,13 +272,13 @@ void CommandLineParser::SetupModelCommands() {
272272
273273 std::string model_alias;
274274 auto model_alias_cmd =
275- models_cmd->add_subcommand (" alias" , " Add alias name for a modelID " );
275+ models_cmd->add_subcommand (" alias" , " Add a model alias instead of ID " );
276276 model_alias_cmd->usage (" Usage:\n " + commands::GetCortexBinary () +
277277 " models alias --model_id [model_id] --alias [alias]" );
278278 model_alias_cmd->group (kSubcommands );
279279 model_alias_cmd->add_option (
280280 " --model_id" , cml_data_.model_id ,
281- " Can be modelID or model alias to identify model" );
281+ " Can be a model ID or model alias " );
282282 model_alias_cmd->add_option (" --alias" , cml_data_.model_alias ,
283283 " new alias to be set" );
284284 model_alias_cmd->callback ([this , model_alias_cmd]() {
@@ -299,7 +299,7 @@ void CommandLineParser::SetupModelCommands() {
299299
300300 std::string model_path;
301301 auto model_import_cmd = models_cmd->add_subcommand (
302- " import" , " Import a gguf model from local file " );
302+ " import" , " Import a model from a local filepath " );
303303 model_import_cmd->usage (
304304 " Usage:\n " + commands::GetCortexBinary () +
305305 " models import --model_id [model_id] --model_path [model_path]" );
@@ -418,7 +418,7 @@ void CommandLineParser::SetupSystemCommands() {
418418 });
419419
420420 auto ps_cmd =
421- app_.add_subcommand (" ps" , " Show running models and their status " );
421+ app_.add_subcommand (" ps" , " Show active model statuses " );
422422 ps_cmd->group (kSystemGroup );
423423 ps_cmd->usage (" Usage:\n " + commands::GetCortexBinary () + " ps" );
424424 ps_cmd->callback ([&]() {
@@ -495,7 +495,7 @@ void CommandLineParser::EngineUninstall(CLI::App* parent,
495495}
496496
497497void CommandLineParser::EngineGet (CLI::App* parent) {
498- auto get_cmd = parent->add_subcommand (" get" , " Get an engine info" );
498+ auto get_cmd = parent->add_subcommand (" get" , " Get engine info" );
499499 get_cmd->usage (" Usage:\n " + commands::GetCortexBinary () +
500500 " engines get [engine_name] [options]" );
501501 get_cmd->group (kSubcommands );
@@ -528,7 +528,7 @@ void CommandLineParser::EngineGet(CLI::App* parent) {
528528
529529void CommandLineParser::ModelUpdate (CLI::App* parent) {
530530 auto model_update_cmd =
531- parent->add_subcommand (" update" , " Update configuration of a model" );
531+ parent->add_subcommand (" update" , " Update model configurations " );
532532 model_update_cmd->group (kSubcommands );
533533 model_update_cmd->add_option (" --model_id" , cml_data_.model_id , " Model ID" )
534534 ->required ();
0 commit comments