Issue
The command spo listitem list uses -i, --id [id] and -t, --title [title] as options to specify the list.
According to our naming conventions, this should be -i, --listId [listId] and -t, --listTitle [listTitle] (this naming convention is also used in other spo listitem commands).
The options are wrong in the docs as well as in the code.
|
{ |
|
option: '-i, --id [listId]' |
|
}, |
|
{ |
|
option: '-t, --title [listTitle]' |
|
}, |
Suggestion
- Introduce 2 new options
-i, --listId [listId] and -t, --listTitle [listTitle]. So we move the short notations to the new options as well.
- Mark options
--title and --id as deprecated.
- Create a new issue with v6 milestone to delete the old options
--title and --id in the next major release.
Issue
The command
spo listitem listuses-i, --id [id]and-t, --title [title]as options to specify the list.According to our naming conventions, this should be
-i, --listId [listId]and-t, --listTitle [listTitle](this naming convention is also used in otherspo listitemcommands).The options are wrong in the docs as well as in the code.
cli-microsoft365/src/m365/spo/commands/listitem/listitem-list.ts
Lines 137 to 142 in de62fbe
Suggestion
-i, --listId [listId]and-t, --listTitle [listTitle]. So we move the short notations to the new options as well.--titleand--idas deprecated.--titleand--idin the next major release.