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

Changed short option for multiple commands. Closes #5478 #5505

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/docs/cmd/spo/file/file-get.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ m365 spo file get [options]
## Options

```md definition-list
`-w, --webUrl <webUrl>`
`-u, --webUrl <webUrl>`
: The URL of the site where the file is located

`-u, --url [url]`
`--url [url]`
: The server- or site-relative decoded URL of the file to retrieve. Specify either `url` or `id` but not both

`-i, --id [id]`
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/cmd/spo/file/file-remove.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ m365 spo page template remove
## Options

```md definition-list
`-w, --webUrl <webUrl>`
`-u, --webUrl <webUrl>`
: URL of the site where the file to remove is located

`-i, --id [id]`
: The ID of the file to remove. Specify either `id` or `url` but not both

`-u, --url [url]`
`--url [url]`
: The server- or site-relative decoded URL of the file to remove. Specify either `id` or `url` but not both

`--recycle`
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/cmd/spo/file/file-version-clear.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ m365 spo file version clear [options]
## Options

```md definition-list
`-w, --webUrl <webUrl>`
`-u, --webUrl <webUrl>`
: The URL of the site where the file is located

`-u, --fileUrl [fileUrl]`
`--fileUrl [fileUrl]`
: The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both

`-i, --fileId [fileId]`
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/cmd/spo/file/file-version-get.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ m365 spo file version get [options]
## Options

```md definition-list
`-w, --webUrl <webUrl>`
`-u, --webUrl <webUrl>`
: The URL of the site where the file is located

`--label <label>`
: Label of version which will be retrieved

`-u, --fileUrl [fileUrl]`
`--fileUrl [fileUrl]`
: The server- or site-relative decoded URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both

`-i, --fileId [fileId]`
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/cmd/spo/file/file-version-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ m365 spo file version list [options]
## Options

```md definition-list
`-w, --webUrl <webUrl>`
`-u, --webUrl <webUrl>`
: The URL of the site where the file is located

`-u, --fileUrl [fileUrl]`
`--fileUrl [fileUrl]`
: The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both

`-i, --fileId [fileId]`
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/cmd/spo/file/file-version-remove.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ m365 spo file version remove [options]
## Options

```md definition-list
`-w, --webUrl <webUrl>`
`-u, --webUrl <webUrl>`
: The URL of the site where the file is located

`--label <label>`
: Label of version which will be removed

`-u, --fileUrl [fileUrl]`
`--fileUrl [fileUrl]`
: The server- or site-relative decoded URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both

`-i, --fileId [fileId]`
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/cmd/spo/file/file-version-restore.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ m365 spo file version restore [options]
## Options

```md definition-list
`-w, --webUrl <webUrl>`
`-u, --webUrl <webUrl>`
: The URL of the site where the file is located

`--label <label>`
: Label of version which will be restored

`-u, --fileUrl [fileUrl]`
`--fileUrl [fileUrl]`
: The server- or site-relative decoded URL of the file whose version will be restored. Specify either `fileUrl` or `fileId` but not both

`-i, --fileId [fileId]`
Expand Down
14 changes: 14 additions & 0 deletions docs/docs/v7-upgrade-guidance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,21 @@ Command|Old option|New option
[pp solution publisher add](./cmd/pp/solution/solution-publisher-add.mdx)|`environment`|`environmentName`
[pp solution publisher list](./cmd/pp/solution/solution-publisher-list.mdx)|`environment`|`environmentName`
[pp solution publisher remove](./cmd/pp/solution/solution-publisher-remove.mdx)|`environment`|`environmentName`
[spo file get](./cmd/spo/file/file-get.mdx)|`-w, --webUrl <webUrl>`|`-u, --webUrl <webUrl>`
[spo file get](./cmd/spo/file/file-get.mdx)|`-u, --url [url]`|`--url [url]`
[spo file list](./cmd/spo/file/file-list.mdx)|`folder`|`folderUrl`
[spo file remove](./cmd/spo/file/file-remove.mdx)|`-w, --webUrl <webUrl>`|`-u, --webUrl <webUrl>`
[spo file remove](./cmd/spo/file/file-remove.mdx)|`-u, --url [url]`|`--url [url]`
[spo file version clear](./cmd/spo/file/file-version-clear.mdx)|`-w, --webUrl <webUrl>`|`-u, --webUrl <webUrl>`
[spo file version clear](./cmd/spo/file/file-version-clear.mdx)|`-u, --fileUrl [fileUrl]`|`--fileUrl [fileUrl]`
[spo file version get](./cmd/spo/file/file-version-get.mdx)|`-w, --webUrl <webUrl>`|`-u, --webUrl <webUrl>`
[spo file version get](./cmd/spo/file/file-version-get.mdx)|`-u, --fileUrl [fileUrl]`|`--fileUrl [fileUrl]`
[spo file version list](./cmd/spo/file/file-version-list.mdx)|`-w, --webUrl <webUrl>`|`-u, --webUrl <webUrl>`
[spo file version list](./cmd/spo/file/file-version-list.mdx)|`-u, --fileUrl [fileUrl]`|`--fileUrl [fileUrl]`
[spo file version remove](./cmd/spo/file/file-version-remove.mdx)|`-w, --webUrl <webUrl>`|`-u, --webUrl <webUrl>`
[spo file version remove](./cmd/spo/file/file-version-remove.mdx)|`-u, --fileUrl [fileUrl]`|`--fileUrl [fileUrl]`
[spo file version restore](./cmd/spo/file/file-version-restore.mdx)|`-w, --webUrl <webUrl>`|`-u, --webUrl <webUrl>`
[spo file version restore](./cmd/spo/file/file-version-restore.mdx)|`-u, --fileUrl [fileUrl]`|`--fileUrl [fileUrl]`
[spo group member add](./cmd/spo/group/group-member-add.mdx)|`userName`|`userNames`
[spo group member add](./cmd/spo/group/group-member-add.mdx)|`email`|`emails`
[spo group member add](./cmd/spo/group/group-member-add.mdx)|`userId`|`userIds`
Expand Down
4 changes: 2 additions & 2 deletions src/m365/spo/commands/file/file-get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ class SpoFileGetCommand extends SpoCommand {
#initOptions(): void {
this.options.unshift(
{
option: '-w, --webUrl <webUrl>'
option: '-u, --webUrl <webUrl>'
},
{
option: '-u, --url [url]'
option: '--url [url]'
},
{
option: '-i, --id [id]'
Expand Down
4 changes: 2 additions & 2 deletions src/m365/spo/commands/file/file-remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ class SpoFileRemoveCommand extends SpoCommand {
#initOptions(): void {
this.options.unshift(
{
option: '-w, --webUrl <webUrl>'
option: '-u, --webUrl <webUrl>'
},
{
option: '-i, --id [id]'
},
{
option: '-u, --url [url]'
option: '--url [url]'
},
{
option: '--recycle'
Expand Down
4 changes: 2 additions & 2 deletions src/m365/spo/commands/file/file-version-clear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ class SpoFileVersionClearCommand extends SpoCommand {
#initOptions(): void {
this.options.unshift(
{
option: '-w, --webUrl <webUrl>'
option: '-u, --webUrl <webUrl>'
},
{
option: '-u, --fileUrl [fileUrl]'
option: '--fileUrl [fileUrl]'
},
{
option: '-i, --fileId [fileId]'
Expand Down
4 changes: 2 additions & 2 deletions src/m365/spo/commands/file/file-version-get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ class SpoFileVersionGetCommand extends SpoCommand {
#initOptions(): void {
this.options.unshift(
{
option: '-w, --webUrl <webUrl>'
option: '-u, --webUrl <webUrl>'
},
{
option: '--label <label>'
},
{
option: '-u, --fileUrl [fileUrl]'
option: '--fileUrl [fileUrl]'
},
{
option: '-i, --fileId [fileId]'
Expand Down
4 changes: 2 additions & 2 deletions src/m365/spo/commands/file/file-version-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ class SpoFileVersionListCommand extends SpoCommand {
#initOptions(): void {
this.options.unshift(
{
option: '-w, --webUrl <webUrl>'
option: '-u, --webUrl <webUrl>'
},
{
option: '-u, --fileUrl [fileUrl]'
option: '--fileUrl [fileUrl]'
},
{
option: '-i, --fileId [fileId]'
Expand Down
4 changes: 2 additions & 2 deletions src/m365/spo/commands/file/file-version-remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ class SpoFileVersionRemoveCommand extends SpoCommand {
#initOptions(): void {
this.options.unshift(
{
option: '-w, --webUrl <webUrl>'
option: '-u, --webUrl <webUrl>'
},
{
option: '--label <label>'
},
{
option: '-u, --fileUrl [fileUrl]'
option: '--fileUrl [fileUrl]'
},
{
option: '-i, --fileId [fileId]'
Expand Down
4 changes: 2 additions & 2 deletions src/m365/spo/commands/file/file-version-restore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ class SpoFileVersionRestoreCommand extends SpoCommand {
#initOptions(): void {
this.options.unshift(
{
option: '-w, --webUrl <webUrl>'
option: '-u, --webUrl <webUrl>'
},
{
option: '--label <label>'
},
{
option: '-u, --fileUrl [fileUrl]'
option: '--fileUrl [fileUrl]'
},
{
option: '-i, --fileId [fileId]'
Expand Down