Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amendments
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LQDN Adminsys
amendments
Commits
a8c7e554
Commit
a8c7e554
authored
Mar 31, 2013
by
Michael Witrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use global variable for debug
parent
08d2d3fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
extract_amendments.rb
extract_amendments.rb
+11
-2
No files found.
extract_amendments.rb
View file @
a8c7e554
...
...
@@ -9,11 +9,20 @@ require 'erb'
require
'ostruct'
options
=
{}
def
debug
(
values
)
def
debug
(
value
)
if
$DEBUG
case
value
when
String
output
=
value
else
output
=
value
.
inspect
end
STDERR
.
puts
output
end
end
extra_args
=
cli
'--xml-dump'
=>
lambda
{
|
path
|
options
[
:xml_dump_path
]
=
path
},
'-d --debug'
=>
lambda
{
def
debug
(
values
)
p
values
;
end
},
'-d --debug'
=>
lambda
{
$DEBUG
=
true
},
'-1 --one'
=>
lambda
{
options
[
:parse_only_one
]
=
true
},
'-n --number'
=>
lambda
{
|
num
|
options
[
:parse_only_num
]
=
num
}
...
...
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