cli: merge 'fields' with 'info' command

Update the 'info' command to handle 'fields' as well; remove
fields.
This commit is contained in:
Dirk-Jan C. Binnema
2023-07-03 18:44:13 +03:00
parent 5e184a581f
commit 9004363aa5
11 changed files with 227 additions and 206 deletions

View File

@ -43,6 +43,17 @@
using namespace Mu;
static Result<void>
cmd_fields(const Options& opts)
{
g_printerr("the 'mu fields' command has been superseded by 'mu info'; try:\n"
" mu info fields\n"
" mu info flags\n");
return Ok();
}
static Result<void>
cmd_find(const Options& opts)
{
@ -101,7 +112,7 @@ Mu::mu_cmd_execute(const Options& opts) try {
* no store needed
*/
case Options::SubCommand::Fields:
return mu_cmd_fields(opts);
return cmd_fields(opts);
case Options::SubCommand::Mkdir:
return mu_cmd_mkdir(opts);
case Options::SubCommand::Script: