It is a common idiom to accept a - parameter meaning stdin. E.g., cat - reads its whole stdin and sends it to stdout. However, argparse currently treats it as a named parameter, even though NamedArgument("") is not allowed—so it cannot be accessed in any way.
It is a common idiom to accept a
-
parameter meaning stdin. E.g.,cat -
reads its whole stdin and sends it to stdout. However, argparse currently treats it as a named parameter, even thoughNamedArgument("")
is not allowed—so it cannot be accessed in any way.