Skip to content

Bug report: spo tenant commandset set - Conflicting usage of -i #4950

@Saurabh7019

Description

@Saurabh7019

Priority

(Low) Something is a little off

Description

The current implementation of the command options introduces inconsistency in the usage of the -i option. It is being used for both the "id" and "Client Side Component Id". As a result, the following example throws an error:

m365 spo tenant commandset set -i 3  --newTitle "Some customizer"
Error: Required option id not specified

Steps to reproduce

  • Log in to the CLI for Microsoft 365

  • Execute the below command

    m365 spo tenant commandset set -i 3 --newTitle "Some customizer

Expected results

  • The -i option should only be used for --id
  • The command should not throw error: Required option id not specified

Actual results

  • The -i option is used for both --id and --clientSideComponentId
  • The command throws error: Required option id not specified

Diagnostics

No response

CLI for Microsoft 365 version

v6.8.0

nodejs version

v18.16.0

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions