Skip to content

Commit

Permalink
npalmGH-240 update name header shorthand to nh
Browse files Browse the repository at this point in the history
  • Loading branch information
larmitage-bjss committed Feb 15, 2024
1 parent b193369 commit 239a0f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Options:
-u, --update-readme Update readme file. [string]
-l, --line-breaks Used line breaks in the generated docs.
[string] [choices: "CR", "LF", "CRLF"] [default: "LF"]
-h, --include-name-header Include a header with the action/workflow name.
-nh, --include-name-header Include a header with the action/workflow name.
```

### Update the README
Expand Down
2 changes: 1 addition & 1 deletion __tests__/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe("CLI tests", () => {

test("Console output including name header and no banner.", async () => {
const result = await cli(
`-a ${path.join(fixtureDir, "action.yml")} -h true --no-banner`,
`-a ${path.join(fixtureDir, "action.yml")} -nh true --no-banner`,
);

const expected = <string>(
Expand Down
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const args = await yargs(process.argv.slice(2))
"include-name-header": {
description: "Include a header with the action/workflow name",
type: "boolean",
alias: "h",
alias: "nh",
},
})
.help().argv;
Expand Down

0 comments on commit 239a0f4

Please sign in to comment.