Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
afa585eb
Commit
afa585eb
authored
Aug 18, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added -f flag for compatibility reasons
parent
28ca39ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
cli.py
cps/cli.py
+4
-0
No files found.
cps/cli.py
View file @
afa585eb
...
@@ -45,6 +45,7 @@ parser.add_argument('-v', '--version', action='version', help='Shows version num
...
@@ -45,6 +45,7 @@ parser.add_argument('-v', '--version', action='version', help='Shows version num
version
=
version_info
())
version
=
version_info
())
parser
.
add_argument
(
'-i'
,
metavar
=
'ip-address'
,
help
=
'Server IP-Address to listen'
)
parser
.
add_argument
(
'-i'
,
metavar
=
'ip-address'
,
help
=
'Server IP-Address to listen'
)
parser
.
add_argument
(
'-s'
,
metavar
=
'user:pass'
,
help
=
'Sets specific username to new password'
)
parser
.
add_argument
(
'-s'
,
metavar
=
'user:pass'
,
help
=
'Sets specific username to new password'
)
parser
.
add_argument
(
'-f'
,
action
=
'store_true'
,
help
=
'Flag is depreciated and will be removed in next version'
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
if
sys
.
version_info
<
(
3
,
0
):
if
sys
.
version_info
<
(
3
,
0
):
...
@@ -113,3 +114,6 @@ user_credentials = args.s or None
...
@@ -113,3 +114,6 @@ user_credentials = args.s or None
if
user_credentials
and
":"
not
in
user_credentials
:
if
user_credentials
and
":"
not
in
user_credentials
:
print
(
"No valid 'username:password' format"
)
print
(
"No valid 'username:password' format"
)
sys
.
exit
(
3
)
sys
.
exit
(
3
)
if
args
.
f
:
print
(
"Warning: -f flag is depreciated and will be removed in next version"
)
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