Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not showing list of subcommands when --help flag is provided #707

Closed
borisding opened this issue Oct 25, 2018 · 0 comments
Closed

Not showing list of subcommands when --help flag is provided #707

borisding opened this issue Oct 25, 2018 · 0 comments
Labels

Comments

@borisding
Copy link

borisding commented Oct 25, 2018

What you are doing?

  • When running with --help provided, it's showing options list as below:
node_modules/.bin/sequelize --help

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]
  • same output when providing --help for subcommand, example:
node_modules/.bin/sequelize db:migrate --help

when running without --help, it's showing list of subcommands instead (which supposed showing with --help provided):

node_modules/.bin/sequelize
Sequelize CLI [Node: 8.0.0, CLI: 5.2.0, ORM: 4.41.0]

sequelize [command]

Commands:
  sequelize db:migrate                        Run pending migrations
  sequelize db:migrate:schema:timestamps:add  Update migration table to have timestamps
  sequelize db:migrate:status                 List the status of all migrations
  sequelize db:migrate:undo                   Reverts a migration
  sequelize db:migrate:undo:all               Revert all migrations ran
  sequelize db:seed                           Run specified seeder
  sequelize db:seed:undo                      Deletes data from the database
  sequelize db:seed:all                       Run every seeder
  sequelize db:seed:undo:all                  Deletes data from the database
  sequelize db:create                         Create database specified by configuration
  sequelize db:drop                           Drop database specified by configuration
  sequelize init                              Initializes project
  sequelize init:config                       Initializes configuration
  sequelize init:migrations                   Initializes migrations
  sequelize init:models                       Initializes models
  sequelize init:seeders                      Initializes seeders
  sequelize migration:generate                Generates a new migration file  [aliases: migration:create]
  sequelize model:generate                    Generates a model and its migration  [aliases: model:create]
  sequelize seed:generate                     Generates a new seed file  [aliases: seed:create]

which is different outputs in v4 (v4.1.1 for my context)

What do you expect to happen?

I wanted to see a list of subcommands when executing node_modules/.bin/sequelize --help

What is actually happening?

But it was showing options as mentioned above.

Dialect: any
Database version: N/A
Sequelize CLI version: 5.2.0
Sequelize version: 4.41.0
Platform: Windows 10, Node: v8.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants