Match the positional args given with those defined in command. At most one argument may allow for a variable number of args (nargs = Inf), so cycle through the args forward (until Inf is encountered), then, if necessary, backward to fully identify the begin/end of the Inf arg.
1 | match_positionals_with_arguments(args, total_nargs)
|
args |
Arguments |
total_nargs |
Total number of arguments provided by the user |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.