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
Carlos Ramos Carreño
slapos.core
Commits
efb939de
Commit
efb939de
authored
Apr 29, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable full tracebacks by default
parent
f5386a22
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
slapos/cli/command.py
slapos/cli/command.py
+1
-1
slapos/cli/entry.py
slapos/cli/entry.py
+10
-3
No files found.
slapos/cli/command.py
View file @
efb939de
...
@@ -10,7 +10,7 @@ class Command(cliff.command.Command):
...
@@ -10,7 +10,7 @@ class Command(cliff.command.Command):
parser
=
argparse
.
ArgumentParser
(
parser
=
argparse
.
ArgumentParser
(
description
=
self
.
get_description
(),
description
=
self
.
get_description
(),
prog
=
prog_name
,
prog
=
prog_name
,
formatter_class
=
argparse
.
Raw
Text
HelpFormatter
formatter_class
=
argparse
.
Raw
Description
HelpFormatter
)
)
return
parser
return
parser
slapos/cli/entry.py
View file @
efb939de
...
@@ -24,9 +24,10 @@ class SlapOSApp(cliff.app.App):
...
@@ -24,9 +24,10 @@ class SlapOSApp(cliff.app.App):
#
#
# self.options.verbose_level:
# self.options.verbose_level:
# -q -> 0
# -q -> 0 (WARNING)
# -v -> 2
# -> 1 (INFO)
# -vv -> 3
# -v -> 2 (DEBUG)
# -vv -> 3 (...)
# etc.
# etc.
#
#
...
@@ -39,6 +40,12 @@ class SlapOSApp(cliff.app.App):
...
@@ -39,6 +40,12 @@ class SlapOSApp(cliff.app.App):
command_manager
=
SlapOSCommandManager
(
'slapos.cli'
),
command_manager
=
SlapOSCommandManager
(
'slapos.cli'
),
)
)
def
build_option_parser
(
self
,
*
args
,
**
kw
):
parser
=
super
(
SlapOSApp
,
self
).
build_option_parser
(
*
args
,
**
kw
)
# always show tracebacks on errors
parser
.
set_defaults
(
debug
=
True
)
return
parser
def
initialize_app
(
self
,
argv
):
def
initialize_app
(
self
,
argv
):
if
self
.
options
.
verbose_level
>
2
:
if
self
.
options
.
verbose_level
>
2
:
self
.
log
.
debug
(
'initialize_app'
)
self
.
log
.
debug
(
'initialize_app'
)
...
...
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