command: blitz db
โบ Error: Missing 1 required arg:
โบ command Run specific db command
โบ See more help with --help
the description should be clear to user, that missed command or shows db related command.
such as:
blitz db migrate
blitz db introspect
blitz db studio
etc ....
Thank you @nabi009, you're absolutely right!
Happy to work on that if possible ๐
@peaonunes yeah, that'd be awesome! Let us know if you need help

I have done it.
Looks nice! Feel free to open up the PR ๐
suggestion: Perhaps we should use log.warning as it is a warning instead of a normal message? Idk. Seems to be missing the reset command, you can interpolate the descriptions static property to be in sync with the command defaults.
@peaonunes thanks so much from your suggestion, your right but I did not change anything too much.
the original code is in /node_modules/@blitzjs/cli/lib/src/commands/db.js
exports.default = Db;
Db.description =Run database commands
${chalk_1.default.bold(' migrate')} Run any needed migrations via Prisma 2 and generate Prisma Client.
${chalk_1.default.bold(' introspect')} Will introspect the database defined in db/schema.prisma and automatically \ngenerate a complete schema.prisma file for you. Lastly, it\'ll generate Prisma Client.
${chalk_1.default.bold(' studio')} Open the Prisma Studio UI at http://localhost:5555 so you can easily see and\n change data in your database.
`;
Db.args = [
{
name: 'Commands',
description: 'Run specific db command',
required: true,
},
];
Db.flags = {
help: command_1.flags.help({ char: 'h' }),
};
and I changed it to this
exports.default = Db;
Db.description =`Run database
${chalk_1.default.bold('๐ migrate')} Run any needed migrations via Prisma 2 and generate Prisma Client.
${chalk_1.default.bold('๐ introspect')} Will introspect the database defined in db/schema.prisma and automatically \ngenerate a complete schema.prisma file for you. Lastly, it\'ll generate Prisma Client.
${chalk_1.default.bold('๐ studio')} Open the Prisma Studio UI at http://localhost:5555 so you can easily see and\n change data in your database.
`;
Db.args = [
{
name: 'Commands',
description: Db.description,
required: true,
},
];
Db.flags = {
help: command_1.flags.help({ char: 'h' }),
};`
I replace this "Run specific db command' to Db.description.

now I think gives clear descriptions to the users.
Most helpful comment
I have done it.