The "pattern" is given by the shell's grammar. In simple cases, it's a command (or rather, a utility), followed by arguments. Arguments may be options, and options may have option arguments. After the options there may be other operands.
Example:
ls -l dir
ls is the command, -l is an option (with no option argument), and dir is an operand. We know that dir is not an option argument to the -l option since we have read the ls manual in which the synopsis section describes the calling sequence of the utility.
Example:
git commit -p
git is the command and since there are no options immediately following the command name, the rest is treated as operands. It's up to the git command to interpret this. You may want to call the commit operand a "sub command" if you wish, and -p an "option" to this sub command.
Example:
cc -o code.o -Wall code.c
Here, cc is the command and both -o and -Wall are options. The -o option takes code.o as an option argument. Depending on the cc command, the -Wall option may in fact be parsed as -W all, i.e. as an option with an option argument (one-letter options do not require a space before their option arguments). code.c is an operand as it occurs after all options.
The words "argument", "option" and "option argument" are the ones used by the POSIX standard. The standard uses the word "utility" rather than "command" as a command may be simple, a list, compound, pipeline etc. For example, ls -l dir is one (simple) command using the utility ls, and { head -n 20 | tail -n 5; } >file is a compound command containing a pipeline and two simple commands.
Arguably, all utility invocations are "actions". Saying killall myprog means "start the utility killall with the operand myprog". The effect thereof will be that the utility, in this case, sends a signal to a process.
Likewise, service restart nginx is the action of invoking the service utility with restart and nginx as the two operands. The effect thereof will be that the nginx service is restarted.
Likewise, nano somedoc is the action of invoking the nano editor, etc. etc.