Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
slapos.core
Commits
92ea5d27
Commit
92ea5d27
authored
May 02, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add --logfile as an alias to --log-file
parent
d0d29df5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
slapos/cli/entry.py
slapos/cli/entry.py
+12
-0
No files found.
slapos/cli/entry.py
View file @
92ea5d27
...
...
@@ -60,9 +60,21 @@ class SlapOSApp(cliff.app.App):
)
def
build_option_parser
(
self
,
*
args
,
**
kw
):
kw
.
setdefault
(
'argparse_kwargs'
,
{})
kw
[
'argparse_kwargs'
][
'conflict_handler'
]
=
'resolve'
parser
=
super
(
SlapOSApp
,
self
).
build_option_parser
(
*
args
,
**
kw
)
# add an alias for --log-file
parser
.
add_argument
(
'--log-file'
,
'--logfile'
,
action
=
'store'
,
default
=
None
,
help
=
'Specify a file to log output. Disabled by default.'
,
)
# always show tracebacks on errors
parser
.
set_defaults
(
debug
=
True
)
return
parser
def
initialize_app
(
self
,
argv
):
...
...
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