Skip to content

Commit

Permalink
smurf: Ignore blank parameter values supplied on the command line
Browse files Browse the repository at this point in the history
  • Loading branch information
David Berry committed Dec 3, 2012
1 parent 13ab016 commit e8d46a3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions applications/smurf/scripts/starutil.py
Expand Up @@ -584,14 +584,15 @@ def __init__(self,params):
name = None
value = item

if value[0] == "\"" or value[0] == "'":
if value[0] == value[-1]:
value = value[1:-1]
if len(value) > 0:
if value[0] == "\"" or value[0] == "'":
if value[0] == value[-1]:
value = value[1:-1]

if name == None:
byPosition.append(value)
else:
byName[name] = value
if name == None:
byPosition.append(value)
else:
byName[name] = value

# Loop round all legal parameter names, maintaining the zero-based
# index of the current parameter..
Expand Down

0 comments on commit e8d46a3

Please sign in to comment.