File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
FluentCommandLineParser/Internals Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,8 @@ public void Bind(ParsedOption value)
155
155
if ( this . Parser . CanParse ( value ) == false ) throw new OptionSyntaxException ( ) ;
156
156
157
157
this . Bind ( this . Parser . Parse ( value ) ) ;
158
+
159
+ this . BindAnyAdditionalArgs ( value ) ;
158
160
}
159
161
160
162
/// <summary>
@@ -172,6 +174,16 @@ void Bind(T value)
172
174
this . ReturnCallback ( value ) ;
173
175
}
174
176
177
+ void BindAnyAdditionalArgs ( ParsedOption option )
178
+ {
179
+ if ( ! this . HasAdditionalArgumentsCallback ) return ;
180
+
181
+ if ( option . AdditionalValues . Any ( ) )
182
+ {
183
+ this . AdditionalArgumentsCallback ( option . AdditionalValues ) ;
184
+ }
185
+ }
186
+
175
187
/// <summary>
176
188
/// Adds the specified description to the <see cref="ICommandLineOptionFluent{T}"/>.
177
189
/// </summary>
You can’t perform that action at this time.
0 commit comments