@@ -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 () +
@@ -136,7 +136,7 @@ void CommandLineParser::SetupCommonCommands() {
136136 }
137137 });
138138
139- auto run_cmd = app_.add_subcommand (" run" , " Shortcut to start a model" );
139+ auto run_cmd = app_.add_subcommand (" run" , " Shortcut: pull, start & chat with a model" );
140140 run_cmd->group (kCommonCommandsGroup );
141141 run_cmd->usage (" Usage:\n " + commands::GetCortexBinary () +
142142 " run [options] [model_id]" );
@@ -213,7 +213,7 @@ void CommandLineParser::SetupModelCommands() {
213213 });
214214
215215 auto list_models_cmd =
216- models_cmd->add_subcommand (" list" , " List all models locally " );
216+ models_cmd->add_subcommand (" list" , " List all local models " );
217217 list_models_cmd->add_option (" filter" , cml_data_.filter , " Filter model id" );
218218 list_models_cmd->add_flag (" -e,--engine" , cml_data_.display_engine ,
219219 " Display engine" );
@@ -230,7 +230,7 @@ void CommandLineParser::SetupModelCommands() {
230230 });
231231
232232 auto get_models_cmd =
233- models_cmd->add_subcommand (" get" , " Get info of {model_id} locally " );
233+ models_cmd->add_subcommand (" get" , " Get a local model info by ID " );
234234 get_models_cmd->usage (" Usage:\n " + commands::GetCortexBinary () +
235235 " models get [model_id]" );
236236 get_models_cmd->group (kSubcommands );
@@ -249,7 +249,7 @@ void CommandLineParser::SetupModelCommands() {
249249 });
250250
251251 auto model_del_cmd =
252- models_cmd->add_subcommand (" delete" , " Delete a model by ID locally " );
252+ models_cmd->add_subcommand (" delete" , " Delete a local model by ID" );
253253 model_del_cmd->usage (" Usage:\n " + commands::GetCortexBinary () +
254254 " models delete [model_id]" );
255255 model_del_cmd->group (kSubcommands );
@@ -270,13 +270,13 @@ void CommandLineParser::SetupModelCommands() {
270270
271271 std::string model_alias;
272272 auto model_alias_cmd =
273- models_cmd->add_subcommand (" alias" , " Add alias name for a modelID " );
273+ models_cmd->add_subcommand (" alias" , " Add a model alias instead of ID " );
274274 model_alias_cmd->usage (" Usage:\n " + commands::GetCortexBinary () +
275275 " models alias --model_id [model_id] --alias [alias]" );
276276 model_alias_cmd->group (kSubcommands );
277277 model_alias_cmd->add_option (
278278 " --model_id" , cml_data_.model_id ,
279- " Can be modelID or model alias to identify model" );
279+ " Can be a model ID or model alias " );
280280 model_alias_cmd->add_option (" --alias" , cml_data_.model_alias ,
281281 " new alias to be set" );
282282 model_alias_cmd->callback ([this , model_alias_cmd]() {
@@ -297,7 +297,7 @@ void CommandLineParser::SetupModelCommands() {
297297
298298 std::string model_path;
299299 auto model_import_cmd = models_cmd->add_subcommand (
300- " import" , " Import a gguf model from local file " );
300+ " import" , " Import a model from a local filepath " );
301301 model_import_cmd->usage (
302302 " Usage:\n " + commands::GetCortexBinary () +
303303 " models import --model_id [model_id] --model_path [model_path]" );
@@ -416,7 +416,7 @@ void CommandLineParser::SetupSystemCommands() {
416416 });
417417
418418 auto ps_cmd =
419- app_.add_subcommand (" ps" , " Show running models and their status " );
419+ app_.add_subcommand (" ps" , " Show active model statuses " );
420420 ps_cmd->group (kSystemGroup );
421421 ps_cmd->usage (" Usage:\n " + commands::GetCortexBinary () + " ps" );
422422 ps_cmd->callback ([&]() {
@@ -491,7 +491,7 @@ void CommandLineParser::EngineUninstall(CLI::App* parent,
491491}
492492
493493void CommandLineParser::EngineGet (CLI::App* parent) {
494- auto get_cmd = parent->add_subcommand (" get" , " Get an engine info" );
494+ auto get_cmd = parent->add_subcommand (" get" , " Get engine info" );
495495 get_cmd->usage (" Usage:\n " + commands::GetCortexBinary () +
496496 " engines get [engine_name] [options]" );
497497 get_cmd->group (kSubcommands );
@@ -524,7 +524,7 @@ void CommandLineParser::EngineGet(CLI::App* parent) {
524524
525525void CommandLineParser::ModelUpdate (CLI::App* parent) {
526526 auto model_update_cmd =
527- parent->add_subcommand (" update" , " Update configuration of a model" );
527+ parent->add_subcommand (" update" , " Update model configurations " );
528528 model_update_cmd->group (kSubcommands );
529529 model_update_cmd->add_option (" --model_id" , cml_data_.model_id , " Model ID" )
530530 ->required ();
0 commit comments