Skip to content
This repository was archived by the owner on Sep 23, 2021. It is now read-only.

Commit

Permalink
added prefix ignore to arguments selections
Browse files Browse the repository at this point in the history
  • Loading branch information
hansehe committed Jan 12, 2019
1 parent faece11 commit ef44888
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions SwarmManagement/SwarmTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ def GetYamlData(yamlFiles):
return yamlData


def GetArgumentValues(arguments, argumentType):
def GetArgumentValues(arguments, argumentType, ignoreArgumentsWithPrefix = "-"):
argumentValues = []
for i in range(len(arguments)-1):
currentArgumentType = arguments[i]
argumentValue = arguments[i+1]
if currentArgumentType == argumentType:
if currentArgumentType == argumentType and not(argumentValue.startswith(ignoreArgumentsWithPrefix)):
argumentValues.append(argumentValue)
return argumentValues

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
# For a discussion on single-sourcing the version across setup.py and the
# project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='1.1.19', # Required
version='1.1.20', # Required

# This is a one-line description or tagline of what your project does. This
# corresponds to the "Summary" metadata field:
Expand Down

0 comments on commit ef44888

Please sign in to comment.