Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mkexp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esmenv
mkexp
Commits
e4bf671d
Commit
e4bf671d
authored
5 years ago
by
Karl-Hermann Wieners
Browse files
Options
Downloads
Patches
Plain Diff
mkexp: changed 'key' option of getexp to be repeatable
parent
55022041
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGES.txt
+5
-0
5 additions, 0 deletions
CHANGES.txt
doc/mkexp.fodt
+370
-355
370 additions, 355 deletions
doc/mkexp.fodt
doc/mkexp.pdf
+0
-0
0 additions, 0 deletions
doc/mkexp.pdf
getexp
+5
-3
5 additions, 3 deletions
getexp
with
380 additions
and
358 deletions
CHANGES.txt
+
5
−
0
View file @
e4bf671d
...
...
@@ -9,6 +9,11 @@ Release Changes
Release 1.0.4
=============
Global
------
* Changed 'key' option of getexp to be repeatable
Configuration
-------------
...
...
This diff is collapsed.
Click to expand it.
doc/mkexp.fodt
+
370
−
355
View file @
e4bf671d
Source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
doc/mkexp.pdf
+
0
−
0
View file @
e4bf671d
No preview for this file type
This diff is collapsed.
Click to expand it.
getexp
+
5
−
3
View file @
e4bf671d
...
...
@@ -63,8 +63,9 @@ command_line.add_argument('--readme', '-R', action='store_true',
command_line
.
add_argument
(
'
--verbose
'
,
'
-v
'
,
action
=
'
count
'
,
help
=
'
show all top-level settings,
'
'
or all settings if used twice
'
)
command_line
.
add_argument
(
'
--key
'
,
'
-k
'
,
help
=
'
print value of given configuration key
'
)
command_line
.
add_argument
(
'
--key
'
,
'
-k
'
,
action
=
'
append
'
,
help
=
'
only print value of given configuration key,
'
'
may be used more than once
'
)
args
=
command_line
.
parse_args
()
...
...
@@ -102,7 +103,8 @@ if args.readme:
print
(
config
[
'
EXP_DESCRIPTION
'
])
elif
args
.
key
:
try
:
print
(
get_value
(
config
,
args
.
key
));
for
key
in
args
.
key
:
print
(
get_value
(
config
,
key
));
except
KeyError
as
error
:
die
(
"
invalid config name
'
{0}
'"
.
format
(
error
.
message
))
elif
args
.
verbose
>=
2
:
...
...
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