添加假的 option 与需要的名称和无参数 nargs=0 ,然后添加'参数'与无限参数 nargs=-1 。 $ python foo --users alice bob charlie --bar baz Users: alice, bob, charlie.
確定! 回上一頁