Skip to content

Bug report: using --help or -h parameter returned help is in raw markdown code #2749

@ValerasNarbutas

Description

@ValerasNarbutas

Description

When using --help, help description is displayed not in rendered markdown
image

Steps to reproduce

  1. Open PowerShell ise
  2. Login to cli with m365 login
  3. Get any help, for example m365 spo site get --help

Expected results

something similar to this but still i see sh and other markdown syntax
in cmder:
image

in VS code
image

Or something similar like PowerShell OOTB help:
image

Actual results

Actual result in powershell ISE:
image

command prompt:
image

Diagnostics

No response

CLI for Microsoft 365 version

v4.0.0

nodejs version

v14.16.0

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

{
  "os": {
    "platform": "win32",
    "version": "Windows 10 Enterprise",
    "release": "10.0.18363"
  },
  "cliVersion": "4.0.0",
  "nodeVersion": "v14.16.0",
  "cliAadAppId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
  "cliAadAppTenant": "common",
  "authMode": "DeviceCode",
  "cliEnvironment": "",
  "roles": [],
  "scopes": [
    "AllSites.FullControl",
    "AppCatalog.ReadWrite.All",
    "ChannelMember.ReadWrite.All",
    "ChannelMessage.Send",
    "ChannelSettings.ReadWrite.All",
    "Directory.AccessAsUser.All",
    "Directory.ReadWrite.All",
    "Group.ReadWrite.All",
    "IdentityProvider.ReadWrite.All",
    "Mail.ReadWrite",
    "Mail.Send",
    "Policy.Read.All",
    "Reports.Read.All",
    "Tasks.ReadWrite",
    "Team.Create",
    "TeamMember.ReadWrite.All",
    "TeamsApp.ReadWrite.All",
    "TeamsAppInstallation.ReadWriteForUser",
    "TeamSettings.ReadWrite.All",
    "TeamsTab.ReadWrite.All",
    "TermStore.ReadWrite.All",
    "User.Invite.All",
    "User.ReadWrite.All",
    "profile",
    "openid",
    "email"
  ]
}

Additional Info

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions