Added choices help to command line arguments.

这个提交包含在:
Craig Warren
2016-04-25 18:21:19 +01:00
父节点 23bec68b43
当前提交 a51e5a66b0
共有 2 个文件被更改,包括 2 次插入2 次删除

查看文件

@@ -28,7 +28,7 @@ from gprMax.exceptions import CmdInputError
# Parse command line arguments
parser = argparse.ArgumentParser(description='Plots a B-scan image.', usage='cd gprMax; python -m tools.plot_Bscan outputfile output')
parser.add_argument('outputfile', help='name of output file including path')
parser.add_argument('output', help='name of output component to be plotted (Ex, Ey, Ez, Hx, Hy, Hz, Ix, Iy or Iz)')
parser.add_argument('output', help='name of output component to be plotted', choices='Ex, Ey, Ez, Hx, Hy, Hz, Ix, Iy or Iz')
args = parser.parse_args()
# Open output file and read some attributes