Add option to use command line parameters in packages
kulturpessimist opened this issue · comments
Alex Schedler commented
If I write a package which needs optional additional command line parameters like --minify the args are not handed down to the package. For example if I push with:
kanso push local --xyz --debug
and I want to use the flag xyz in my package I got the following result
...
Build complete: 4601ms
request GET /_session?
request headers { Host: 'localhost',
Accept: 'application/json',
'Content-Length': 0 }
request data null
response: { headers:
{ server: 'CouchDB/1.2.0 (Erlang OTP/R15B)',
date: 'Thu, 14 Mar 2013 14:42:59 GMT',
'content-type': 'application/json',
'content-length': '140',
'cache-control': 'must-revalidate' },
url: '',
method: null,
statusCode: 200 }
data: { ok: true,
userCtx: { name: null, roles: [] },
info:
{ authentication_db: '_users',
authentication_handlers: [ 'oauth', 'cookie', 'default' ] } }
request HEAD /--xyz/
request headers { Host: 'localhost', Accept: 'application/json' }
request data null
response: { headers:
{ server: 'CouchDB/1.2.0 (Erlang OTP/R15B)',
date: 'Thu, 14 Mar 2013 14:42:59 GMT',
'content-type': 'application/json',
'content-length': '181',
'cache-control': 'must-revalidate' },
url: '',
method: null,
statusCode: 400 }
data: null
Error: 400: Bad Request
so my flag gets consumed in kanso and is not handed down to my package :-(