aerogear / offix

GraphQL Offline Client and Server
https://offix.dev
Apache License 2.0
758 stars 45 forks source link

CLi is not using defaults and help system #770

Closed wtrocki closed 4 years ago

wtrocki commented 4 years ago

CLi is not using defaults:

yarn offix generate >

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
    at Object.openSync (fs.js:449:10)
    at Object.readFileSync (fs.js:359:35)
    at Object.exports.generate (/Users/wtrocki/Projects/sync/offix/packages/datastore/cli/dist/generate.js:8:25)
    at Object.handler (/Users/wtrocki/Projects/sync/offix/packages/datastore/cli/dist/index.js:18:29)
    at Object.runCommand (/Users/wtrocki/Projects/sync/offix/packages/datastore/cli/node_modules/yargs/build/lib/command.js:196:48)

We should also support positional parameters

Eunovo commented 4 years ago

@wtrocki SInce I'm adding positional arguments, can I drop current named arguments?

wtrocki commented 4 years ago

ok