Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Passing a parameter value with spaces in it seems to work but trigger an error #137

Open

Description

@asmodehn

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions