Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SDG
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Program Slicing
SDG
Merge requests
!47
Resolve "Slicer.java flag -l fails"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Slicer.java flag -l fails"
42-slicer-java-flag-l-fails
into
develop
Overview
0
Commits
1
Pipelines
3
Changes
1
Merged
Carlos Galindo
requested to merge
42-slicer-java-flag-l-fails
into
develop
4 years ago
Overview
0
Commits
1
Pipelines
3
Changes
1
Expand
Closes
#42 (closed)
Edited
4 years ago
by
Carlos Galindo
0
0
Merge request reports
Compare
develop
version 1
b187dbad
4 years ago
develop (base)
and
latest version
latest version
e74c8722
1 commit,
4 years ago
version 1
b187dbad
1 commit,
4 years ago
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
sdg-cli/src/main/java/es/upv/mist/slicing/cli/Slicer.java
+
2
−
2
Options
@@ -49,7 +49,7 @@ public class Slicer {
.
build
());
OPTIONS
.
addOption
(
Option
.
builder
(
"l"
).
longOpt
(
"line"
)
.
hasArg
().
argName
(
"lineNumber"
).
type
(
Integ
er
.
class
)
.
hasArg
().
argName
(
"lineNumber"
).
type
(
Numb
er
.
class
)
.
desc
(
"The line that contains the statement of the slicing criterion."
)
.
build
());
OPTIONS
.
addOption
(
Option
@@ -126,7 +126,7 @@ public class Slicer {
}
}
else
if
(
cliOpts
.
hasOption
(
'f'
)
&&
cliOpts
.
hasOption
(
'l'
))
{
setScFile
(
cliOpts
.
getOptionValue
(
'f'
));
setScLine
((
Integ
er
)
cliOpts
.
getParsedOptionValue
(
"l"
));
setScLine
((
(
Numb
er
)
cliOpts
.
getParsedOptionValue
(
"l"
))
.
intValue
())
;
if
(
cliOpts
.
hasOption
(
'v'
))
{
if
(
cliOpts
.
hasOption
(
'n'
))
setScVars
(
cliOpts
.
getOptionValues
(
'v'
),
cliOpts
.
getOptionValues
(
'n'
));
Loading