Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lpmn_client
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nlpworkers
lpmn_client
Merge requests
!17
Refactor
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Refactor
refactor
into
master
Overview
0
Commits
16
Pipelines
2
Changes
5
Merged
Mateusz Gniewkowski
requested to merge
refactor
into
master
3 years ago
Overview
0
Commits
16
Pipelines
2
Changes
5
Expand
0
0
Merge request reports
Compare
master
version 1
137ac17c
3 years ago
master (base)
and
latest version
latest version
97226d85
16 commits,
3 years ago
version 1
137ac17c
15 commits,
3 years ago
5 files
+
36
−
13
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
lpmn_client/__main__.py
+
9
−
3
Options
@@ -11,6 +11,12 @@ def get_args():
description
=
"
LPMN CLI tool
"
,
)
parser
.
add_argument
(
"
-v
"
,
"
--verbose
"
,
help
=
"
If progress should be printed.
"
,
action
=
"
store_true
"
)
parser
.
add_argument
(
"
-i
"
,
"
--input
"
,
@@ -31,10 +37,10 @@ def get_args():
def
main
():
"""
Runs the program.
"""
args
=
get_args
()
file_id
=
upload_file
(
args
.
input
)
file_id
=
upload_file
(
file_path
=
args
.
input
)
t
=
Task
(
args
.
lpmn
)
output_file_id
=
t
.
run
(
file_id
)
downloaded
=
download_file
(
output_file_id
,
args
.
output
)
output_file_id
=
t
.
run
(
file_id
=
file_id
,
verbose
=
args
.
verbose
)
downloaded
=
download_file
(
file_id
=
output_file_id
,
output_path
=
args
.
output
)
print
(
f
"
Result saved to
{
downloaded
}
"
)