From 64ce09cf0f8303b3ddc2a29234db1b1416bb919b Mon Sep 17 00:00:00 2001 From: lausek Date: Thu, 23 Apr 2020 14:22:53 +0200 Subject: [PATCH] possible fix for #219 --- src/argparse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/argparse.rs b/src/argparse.rs index e4ca0edb..f5c50211 100644 --- a/src/argparse.rs +++ b/src/argparse.rs @@ -197,7 +197,7 @@ macro_rules! py_argparse_parse_plist_impl { // TT muncher macro that does the main work for py_argparse_parse_plist!. // Base case: all parameters handled - { $callback:ident { $($initial_arg:tt)* } $output:tt ( ) } => { + { $callback:ident { $($initial_arg:tt)* } $output:tt ( $(,)? ) } => { $crate::$callback! { $($initial_arg)* $output } }; // Kwargs parameter with reference extraction