You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.
Because I am managing multiple levels of parameters ( some in shell, some in python, some for underlying system ), I need to pass a parameter like:
--params="value1 value2 value3".
Currently I get :
ERROR: Invalid remapping argument 'params=value1 value2 value3'
but this python code seems to work as expected :
@manager.option('-p', '--params', dest='params', default='')
def flask(params=''):
try:
app.logger.info('params%r', params)
#get params in list:
do_something(params.split()))
the logger gives me :
params u'value1 value2 value3'
Any idea why the ERROR ?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Because I am managing multiple levels of parameters ( some in shell, some in python, some for underlying system ), I need to pass a parameter like:
--params="value1 value2 value3".
Currently I get :
ERROR: Invalid remapping argument 'params=value1 value2 value3'
but this python code seems to work as expected :
@manager.option('-p', '--params', dest='params', default='')
def flask(params=''):
try:
app.logger.info('params%r', params)
#get params in list:
do_something(params.split()))
the logger gives me :
params u'value1 value2 value3'
Any idea why the ERROR ?
The text was updated successfully, but these errors were encountered: