Skip to content

Commit

Permalink
feat(help): use regex to match required args
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Jan 5, 2024
1 parent 2083aeb commit 875097b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/artisan",
"version": "4.24.0",
"version": "4.25.0",
"description": "The Athenna CLI application. Built on top of commander and inspired in @adonisjs/ace.",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/Formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class Formatter {
private helpWidth: number = 0
private indent: string = ''
private moveOptions: any = false
private matchRequiredArgs = /\[(.*?)\]/
private matchRequiredArgs = /<(.*?)>/
private matchOptionsAndOptionalArgs = /\[(.*?)\]/
private sections = {
description: '',
Expand Down

0 comments on commit 875097b

Please sign in to comment.