Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
diffoscope
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reproducible Builds
diffoscope
Commits
aee4f735
Commit
aee4f735
authored
4 years ago
by
Chris Lamb
Browse files
Options
Downloads
Patches
Plain Diff
Make it easier to navigate the main.py entry point.
parent
c66a7f65
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
diffoscope/main.py
+6
-0
6 additions, 0 deletions
diffoscope/main.py
with
6 additions
and
0 deletions
diffoscope/main.py
+
6
−
0
View file @
aee4f735
...
...
@@ -736,14 +736,20 @@ def main(args=None):
args
=
[
repl
if
x
==
val
else
x
for
x
in
args
]
parsed_args
=
None
try
:
with
profile
(
"
main
"
,
"
parse_args
"
):
parser
,
post_parse
=
create_parser
()
parsed_args
=
parser
.
parse_args
(
args
)
log_handler
=
ProgressManager
().
setup
(
parsed_args
)
with
setup_logging
(
parsed_args
.
debug
,
log_handler
)
as
logger
:
post_parse
(
parsed_args
)
# Call main entry point
sys
.
exit
(
run_diffoscope
(
parsed_args
))
except
OSError
as
e
:
if
e
.
errno
!=
errno
.
ENOSPC
:
raise
...
...
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