Skip to content

Commit 1ee3001

Browse files
committed
update
1 parent f64cf78 commit 1ee3001

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# 0.0.6
22

3+
## 修复bug
4+
5+
+ 修复了每一级子命令都会打印epilog的bug
6+
37
## 新特性
48

59
+ `array`类型的参数现在也可以被作为命令行中的noflag字段了.它的输入行为使用`nargs="+"`的形式

schema_entry/entrypoint.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ def __call__(self, argv: Sequence[str]) -> None:
105105
epilog = self.epilog
106106
else:
107107
epilog = "子命令描述:\n" + "\n".join([f"{subcmd}\t{ins.__doc__}" for subcmd, ins in self._subcmds.items()])
108-
print(epilog)
109108
parser = argparse.ArgumentParser(
110109
prog=self.prog,
111110
epilog=epilog,

0 commit comments

Comments
 (0)