Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
slapos.core
Commits
fec3622f
Commit
fec3622f
authored
Apr 25, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed redundant defaults in argparse
parent
03ab49e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
slapos/grid/slapgrid.py
slapos/grid/slapgrid.py
+6
-6
No files found.
slapos/grid/slapgrid.py
View file @
fec3622f
...
@@ -119,17 +119,15 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple):
...
@@ -119,17 +119,15 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple):
help
=
"Root certificate of SlapOS master key."
)
help
=
"Root certificate of SlapOS master key."
)
parser
.
add_argument
(
"--certificate_repository_path"
,
parser
.
add_argument
(
"--certificate_repository_path"
,
help
=
"Path to directory where downloaded certificates would be stored."
)
help
=
"Path to directory where downloaded certificates would be stored."
)
parser
.
add_argument
(
"-c"
,
"--console"
,
action
=
"store_true"
,
default
=
False
,
parser
.
add_argument
(
"-v"
,
"--verbose"
,
action
=
"store_true"
,
help
=
"Deprecated, doesn't do anything."
)
parser
.
add_argument
(
"-v"
,
"--verbose"
,
action
=
"store_true"
,
default
=
False
,
help
=
"Be verbose."
)
help
=
"Be verbose."
)
parser
.
add_argument
(
"--maximum-periodicity"
,
type
=
int
,
default
=
None
,
parser
.
add_argument
(
"--maximum-periodicity"
,
type
=
int
,
default
=
None
,
help
=
"Periodicity at which buildout should be run in instance."
)
help
=
"Periodicity at which buildout should be run in instance."
)
parser
.
add_argument
(
"--promise-timeout"
,
type
=
int
,
default
=
3
,
parser
.
add_argument
(
"--promise-timeout"
,
type
=
int
,
default
=
3
,
help
=
"Promise timeout in seconds."
)
help
=
"Promise timeout in seconds."
)
parser
.
add_argument
(
"--now"
,
action
=
"store_true"
,
default
=
False
,
parser
.
add_argument
(
"--now"
,
action
=
"store_true"
,
help
=
"Launch slapgrid without delay. Default behavior."
)
help
=
"Launch slapgrid without delay. Default behavior."
)
parser
.
add_argument
(
"--all"
,
action
=
"store_true"
,
default
=
False
,
parser
.
add_argument
(
"--all"
,
action
=
"store_true"
,
help
=
"Launch slapgrid to process all Softare Releases "
help
=
"Launch slapgrid to process all Softare Releases "
"and/or Computer Partitions."
)
"and/or Computer Partitions."
)
parser
.
add_argument
(
"--only-sr"
,
parser
.
add_argument
(
"--only-sr"
,
...
@@ -145,7 +143,9 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple):
...
@@ -145,7 +143,9 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple):
help
=
"SlapOS configuration file."
)
help
=
"SlapOS configuration file."
)
# Deprecated options
# Deprecated options
parser
.
add_argument
(
"--develop"
,
action
=
"store_true"
,
default
=
False
,
parser
.
add_argument
(
"-c"
,
"--console"
,
action
=
"store_true"
,
help
=
"Deprecated, doesn't do anything."
)
parser
.
add_argument
(
"--develop"
,
action
=
"store_true"
,
help
=
"Deprecated, same as --all."
)
help
=
"Deprecated, same as --all."
)
parser
.
add_argument
(
"--only_sr"
,
parser
.
add_argument
(
"--only_sr"
,
help
=
"Deprecated, same as --only-sr."
)
help
=
"Deprecated, same as --only-sr."
)
...
...
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