Python Read from Stdin with Arguments
问题 I want to read from python stdin but also to have input options in my program. When I try to pass an option to my programm I get the error file not found and my arguments are discarded. For parsing the arguments I use the following code: parser=argparse.ArgumentParser(description='Training and Testing Framework') parser.add_argument('--text', dest='text', help='The text model',required=True) parser.add_argument('--features', dest='features', help='The features model',required=True) parser.add