Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cli2
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Open Source Software
cli2
Commits
be138833
Commit
be138833
authored
Jan 22, 2019
by
∞
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix in Cli2ArgsException
parent
ca65b3df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
cli2/exceptions.py
cli2/exceptions.py
+5
-2
No files found.
cli2/exceptions.py
View file @
be138833
...
@@ -9,8 +9,11 @@ class Cli2ArgsException(Cli2Exception):
...
@@ -9,8 +9,11 @@ class Cli2ArgsException(Cli2Exception):
def
__init__
(
self
,
command
,
passed_args
):
def
__init__
(
self
,
command
,
passed_args
):
msg
=
[
'Got arguments:'
]
if
len
(
passed_args
)
else
[]
msg
=
[
'Got arguments:'
]
if
len
(
passed_args
)
else
[]
for
arg
,
i
in
enumerate
(
passed_args
,
start
=
0
):
for
i
,
arg
in
enumerate
(
passed_args
,
start
=
0
):
msg
.
append
(
'='
.
join
(
command
.
required_args
[
i
],
arg
))
msg
.
append
(
'='
.
join
([
command
.
required_args
[
i
],
arg
]))
if
msg
:
msg
.
append
(
''
)
msg
.
append
(
msg
.
append
(
'Missing arguments: '
+
', '
.
join
([
*
map
(
'Missing arguments: '
+
', '
.
join
([
*
map
(
...
...
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