From 1db23bcff288c7facf4492441aa44a69b6cfb4ad Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 12 Mar 2021 23:00:17 +0000
Subject: l3packages (12mar21)

git-svn-id: svn://tug.org/texlive/trunk@58296 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx')

diff --git a/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx b/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx
index 8c6b1eff62e..eea16b67952 100644
--- a/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx
+++ b/Master/texmf-dist/tex/latex/l3packages/xparse/xparse.ltx
@@ -24,13 +24,19 @@
 \def\@parse@version@dash#1-#2-#3#4#5\@nil{%
   \if\relax#2\relax\else#1\fi#2#3#4 }
 \ExplSyntaxOn
+\cs_set_protected:Npn \__cmd_tmp:w #1
+  {
+    \DeclareOption* { \PassOptionsToPackage { \CurrentOption } {#1} }
+    \ProcessOptions \relax
+    \RequirePackage {#1}
+  }
 \cs_if_free:NTF \NewDocumentCommand
   {
     \ExplSyntaxOff
     \ifnum\expandafter
         \@parse@version\fmtversion//00\@nil <
         \@parse@version 2020-10-01//00\@nil
-      \RequirePackage{xparse-2018-04-12}
+      \__cmd_tmp:w { xparse-2018-04-12 }
     \else
       \@@input xparse-generic.tex ~
     \fi
@@ -40,7 +46,7 @@
     \ExplSyntaxOff
     \cs_if_exist:NF \__cmd_start:nNNnnn
       {
-        \RequirePackage{xparse-2020-10-01}
+        \__cmd_tmp:w { xparse-2020-10-01 }
         \file_input_stop:
       }
   }
-- 
cgit v1.2.3

