diff --git a/python/taichi/examples/rendering/taichi_ngp.py b/python/taichi/examples/rendering/taichi_ngp.py index 2082a4c6bdd6c..91e4e371e9cec 100644 --- a/python/taichi/examples/rendering/taichi_ngp.py +++ b/python/taichi/examples/rendering/taichi_ngp.py @@ -1106,4 +1106,5 @@ def main(args): parser.add_argument('--model_path', type=str, default=None) parser.add_argument('--gui', action='store_true', default=False) parser.add_argument('--print_profile', action='store_true', default=False) - main(parser.parse_args()) + cmd_args, _ = parser.parse_known_args() + main(cmd_args)