BUAA-SE-Compiling / miniplc0-compiler

The miniplc0 compiler
21 stars 31 forks source link

命令行不能用 - 代表 stdin #12

Open wtdcode opened 4 years ago

wtdcode commented 4 years ago
$ ./miniplc0 -l -
Unknown argument

Usage: miniplc0 [options] input

Positional arguments:
input           speicify the file to be compiled.

Optional arguments:
-h --help       show this help message and exit
-t              perform tokenization for the input file.
-l              perform syntactic analysis for the input file.
-o --output     specify the output file.[Required]

看来是 argparse 还有些bug,待修。

wtdcode commented 4 years ago

上游修复感觉要一年....

wtdcode commented 4 years ago

See this.