vim.api.keyset.create_user_command.command_args
Fields12
command_args.name : string
Command name
The args passed to the command, if any <args>
command_args.args : string
command_args.fargs : string[]
The args split by unescaped whitespace (when more than one argument is allowed), if any <f-args>
command_args.nargs : string
Number of arguments |:command-nargs|
command_args.bang : boolean
"true" if the command was executed with a ! modifier <bang>
command_args.line1 : integer
The starting line of the command range <line1>
command_args.line2 : integer
The final line of the command range <line2>
command_args.range : integer
The number of items in the command range: 0, 1, or 2 <range>
command_args.count : integer
Any count supplied <count>
command_args.reg : string
The optional register, if specified <reg>
command_args.mods : string
Command modifiers, if any <mods>
command_args.smods : vim.api.keyset.cmd_mods
Command modifiers in a structured format. Has the same structure as the "mods" key of |nvimparsecmd()|.