cli-microsoft365 icon indicating copy to clipboard operation
cli-microsoft365 copied to clipboard

Enhancement: Display warning if non-existing command is called

Open MartinM85 opened this issue 1 year ago • 2 comments

If a user type a command which doesn't exist then the output is very general without any message what was wrong.

Example:

m365 entra group add --displayName CliGroup --description 'test group' --type microsoft365 --mailNickname CliGroup

Output:

CLI for Microsoft 365 v7.4.0
Manage Microsoft 365 and SharePoint Framework projects on any platform

Commands:

  docs [options]     Returns the CLI for Microsoft 365 docs webpage URL
  login [options]    Log in to Microsoft 365
  logout [options]   Log out from Microsoft 365
  request [options]  Executes the specified web request using CLI for Microsoft 365
  setup [options]    Sets up CLI for Microsoft 365 based on your preferences
  status [options]   Shows Microsoft 365 login status
  version [options]  Shows CLI for Microsoft 365 version

Commands groups:

  aad *           81 commands
  adaptivecard *  1 command
  app *           4 commands
  booking *       2 commands
  cli *           13 commands
  context *       5 commands
  entra *         82 commands
  external *      7 commands
  file *          3 commands
  flow *          17 commands
  graph *         7 commands
  onedrive *      8 commands
  onenote *       2 commands
  outlook *       17 commands
  pa *            13 commands
  planner *       31 commands
  pp *            31 commands
  purview *       19 commands
  search *        5 commands
  skype *         3 commands
  spfx *          8 commands
  spo *           342 commands
  teams *         68 commands
  tenant *        20 commands
  todo *          10 commands
  util *          1 command
  viva *          1 command
  yammer *        21 commands

MartinM85 avatar Jan 09 '24 06:01 MartinM85

That's a good point. Showing the list of available commands is one, but we should definitely show some kind of message. Thanks for bringing it up

waldekmastykarz avatar Jan 11 '24 10:01 waldekmastykarz

Can I work on this one?

MathijsVerbeeck avatar Feb 14 '24 21:02 MathijsVerbeeck