Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
sn
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Turris
Sentinel
sn
Commits
fc8655cb
Commit
fc8655cb
authored
Mar 02, 2018
by
Robin Obůrka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
argparser: Rewrite argparser to more readable form
parent
ca010ad8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
sn/argparser.py
sn/argparser.py
+10
-3
No files found.
sn/argparser.py
View file @
fc8655cb
...
...
@@ -5,7 +5,14 @@ def get_arg_parser():
""" Creates own arguments parser and return it as an object.
"""
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'--resource'
,
nargs
=
1
,
action
=
'append'
,
required
=
True
,
help
=
'resource format: sockname,[connect/bind],sock_type,ip_address,port'
)
parser
.
add_argument
(
'--disable-ipv6'
,
action
=
'store_true'
)
parser
.
add_argument
(
'--resource'
,
nargs
=
1
,
action
=
'append'
,
required
=
True
,
help
=
'resource format: sockname,[connect/bind],sock_type,ip_address,port'
)
parser
.
add_argument
(
'--disable-ipv6'
,
action
=
'store_true'
,
help
=
'Disable IPv6 mode of ZMQ sockets'
)
return
parser
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