Skip to main content

mr categories revisions label

Set, change or clear the label of a revision of a category. Pass the new text as the second argument, at most 200 characters, or pass --clear to remove the label; giving both or neither is an error. The label is the only part of a revision that can change after it is recorded.

Usage​

mr categories revisions label <number> [text]

Positional arguments:

  • <number>
  • <text> (optional)

Examples​

Label revision 2

mr categories revisions label 2 "before redesign" --id 3

Remove the label again

mr categories revisions label 2 --clear --id 3

Flags​

FlagTypeDefaultDescription
--iduint0ID of the category (required)
--clearboolfalseRemove the label instead of setting one

Inherited global flags​

FlagTypeDefaultDescription
--jsonboolfalseOutput raw JSON
--no-headerboolfalseOmit table headers
--pageint1Page number for list commands (default page size: 50)
--quietboolfalseOnly output IDs
--serverstringhttp://localhost:8181mahresources server URL (env: MAHRESOURCES_URL)

Output​

Revision summary with the new label under --json; confirmation otherwise

Exit Codes​

0 on success; 1 on any error

See Also​