Cli-microsoft365: Bug report: Non-existent command doesn't output an error

Created on 2 Jul 2020  路  6Comments  路  Source: pnp/cli-microsoft365

Description

Non-existent command o365 -auth identity doesn't output an error. It looks like it just silently fails.

Steps to reproduce

o365 -auth identity

Expected result

An output like this:

$ o365 -foo

  Invalid Command. Showing Help:
...
...

Actual result

No output.

Environment

Azure Cloud Shell
o365 version : 2.10.0

bug on hold

All 6 comments

Thank you for reporting! We'll look into it

I can reproduce it but need to dig deeper what's causing this behavior. I'll update the issue as soon as I know more.

You also get invalid comment when you execute m365 --help, however m365 help doesn't.

Since we're working on removing Vorpal, which is what we're using internally for the CLI base functionality, and which is causing the issue, I'd say we park this for now and check if this issue is still there after we removed Vorpal.

I can confirm that issue is resolved in the branch related to removing Vorpal #1737. When we ship this version in preview beginning of October, we can double check that this issue is addressed as expected and close if ok.

This behavior seems to be corrected in the currently released preview version. Closing this issue as resolved. Thanks again for reporting @alexandair

Was this page helpful?
0 / 5 - 0 ratings