Getting the remaining arguments in argparse February 22, 2023 by Tarik Use parse_known_args(): args, unknownargs = parser.parse_known_args()