Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Marco Berzborn
toolbox
Commits
ec28dbd8
Commit
ec28dbd8
authored
Dec 12, 2016
by
Jan-Gerrit Richter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ita_parse_arguments: disabled warning if unknown parameters are returned
parent
b7aa1751
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
Debug/test_ita_parse_arguments.m
Debug/test_ita_parse_arguments.m
+12
-0
kernel/StandardRoutines/ita_parse_arguments.m
kernel/StandardRoutines/ita_parse_arguments.m
+3
-1
No files found.
Debug/test_ita_parse_arguments.m
View file @
ec28dbd8
...
...
@@ -31,3 +31,15 @@ end
% -
%% test moving unknown options to second output
struct
.
testpar
=
1
;
struct
.
testpar2
=
2
;
parCell
=
{
'testpar'
,
2
,
'testpar2'
,
4
,
'unknown'
,
6
};
% this should give a warning
[
sArgs
]
=
ita_parse_arguments
(
struct
,
parCell
);
% this should not
[
sArgs
,
unknownParams
]
=
ita_parse_arguments
(
struct
,
parCell
);
kernel/StandardRoutines/ita_parse_arguments.m
View file @
ec28dbd8
...
...
@@ -300,7 +300,9 @@ while (idx <= nArguments) % go through all arguments
end
if
notFoundArguments
==
1
ita_verbose_info
([
thisFuncStr
callFuncStr
'Some arguments could not be found in the struct. They are returned separately.'
],
0
);
if
nargout
<
2
ita_verbose_info
([
thisFuncStr
callFuncStr
'Some arguments could not be found in the struct. They are returned separately.'
],
0
);
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment