Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Display warning if non-existing command is called #5768

Closed
MartinM85 opened this issue Jan 9, 2024 · 2 comments
Closed

Enhancement: Display warning if non-existing command is called #5768

MartinM85 opened this issue Jan 9, 2024 · 2 comments

Comments

@MartinM85
Copy link
Contributor

MartinM85 commented Jan 9, 2024

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 MartinM85 changed the title Display info about wrong command Enhancement: Display warning if non-existing command is called Jan 10, 2024
@waldekmastykarz
Copy link
Member

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

@MathijsVerbeeck
Copy link
Contributor

Can I work on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants