





argparse следует обычному использованию в синтаксисе re. цитата из https://docs.python.org/3/library/re.html
* Causes the resulting RE to match 0 or more repetitions of the preceding RE, as many repetitions as are possible. ab* will match ‘a’, ‘ab’, or ‘a’ followed by any number of ‘b’s.
+ Causes the resulting RE to match 1 or more repetitions of the preceding RE. ab+ will match ‘a’ followed by any non-zero number of ‘b’s; it will not match just ‘a’.
? Causes the resulting RE to match 0 or 1 repetitions of the preceding RE. ab? will match either ‘a’ or ‘ab’.
https://docs.python.org/3/library/argparse.html#nargs
Вы также можете использовать константы argparse, которые имеют одинаковые строковые значения.
argparse.ONE_OR_MORE
argparse.ZERO_OR_MORE
argparse.OPTIONAL
От документы python для argparse:
'+'. Just like '*', all command-line args present are gathered into a list. Additionally, an error message will be generated if there wasn’t at least one command-line argument present.Обратите внимание на последнее предложение - в этом разница.