Skip to content

Commit e4951b8

Browse files
committed
fix: add description to usage
1 parent cbc3fc4 commit e4951b8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ export async function generate(
5454
(async () => {
5555
// setup cli
5656
const argv = await yargs(hideBin(process.argv))
57-
.usage('npx @lab11/anchorgen <Program ID>')
57+
.usage(
58+
'$0 <Program ID>',
59+
'Reads an Anchor IDL from stdin and prints the equivalent Rust interface to stdout'
60+
)
5861
.demandCommand(1)
5962
.positional('Program ID', {
6063
describe: 'ID of the generated Anchor program',

0 commit comments

Comments
 (0)