Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
forge001
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gerhard Gonter
forge001
Commits
46a125a6
Commit
46a125a6
authored
8 years ago
by
Gerhard Gonter
Browse files
Options
Downloads
Patches
Plain Diff
changed option handling
parent
0274d545
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
textarchive/vlib001.pl
+11
-9
11 additions, 9 deletions
textarchive/vlib001.pl
with
11 additions
and
9 deletions
textarchive/vlib001.pl
+
11
−
9
View file @
46a125a6
...
...
@@ -89,17 +89,19 @@ my @subdirs= ();
while
(
my
$arg
=
shift
(
@ARGV
))
{
if
(
$arg
eq
'
--
')
{
push
(
@PAR
,
@ARGV
);
@ARGV
=
();
}
elsif
(
$arg
=~
/^--/
)
elsif
(
$arg
=~
/^--
(.+)
/
)
{
if
(
$arg
eq
'
--project
')
{
$project
=
shift
(
@ARGV
);
}
elsif
(
$arg
eq
'
--store
')
{
$store
=
shift
(
@ARGV
);
}
elsif
(
$arg
eq
'
--limit
')
{
$limit
=
shift
(
@ARGV
);
}
elsif
(
$arg
eq
'
--fileinfo
')
{
$refresh_fileinfo
=
1
;
}
elsif
(
$arg
eq
'
--noinode
')
{
$check_inode
=
0
;
}
elsif
(
$arg
eq
'
--subdir
')
{
push
(
@subdirs
,
shift
(
@ARGV
));
}
elsif
(
$arg
eq
'
--cd
')
{
$cd_mode
=
1
;
}
my
(
$opt
,
$val
)
=
split
('
=
',
$
1
,
2
);
if
(
$opt
eq
'
project
')
{
$project
=
$val
||
shift
(
@ARGV
);
}
elsif
(
$opt
eq
'
store
')
{
$store
=
$val
||
shift
(
@ARGV
);
}
elsif
(
$opt
eq
'
limit
')
{
$limit
=
$val
||
shift
(
@ARGV
)
;
}
elsif
(
$opt
eq
'
fileinfo
')
{
$refresh_fileinfo
=
1
;
}
elsif
(
$opt
eq
'
noinode
')
{
$check_inode
=
0
;
}
elsif
(
$opt
eq
'
subdir
')
{
push
(
@subdirs
,
$val
||
shift
(
@ARGV
));
}
elsif
(
$opt
eq
'
cd
')
{
$cd_mode
=
1
;
}
elsif
(
$arg
=~
/^--(refresh|verify|lookup|edit|maint|next-seq|get-cat)$/
)
{
$op_mode
=
$
1
;
}
else
{
&usage
("
unknown option '
--
$arg
'
");
}
else
{
&usage
("
unknown option '
$arg
'
");
}
}
elsif
(
$arg
=~
/^-/
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment