Skip to content

Commit

Permalink
Fix usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
75lb committed Aug 30, 2024
1 parent 2aca4bc commit 5f163a5
Show file tree
Hide file tree
Showing 6 changed files with 287 additions and 29,863 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Node.js CI

on:
push:
branches: [ master ]
branches: [ master, next ]
pull_request:
branches: [ master ]

Expand All @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [20, 22]
node-version: [12, 14, 16, 18, 20, 22]

steps:
- uses: actions/checkout@v4
Expand All @@ -26,4 +26,5 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm i -g @75lb/nature
- run: npm run test:ci
10 changes: 3 additions & 7 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,9 @@ function loadStoredConfig (options) {
}

function parseCommandLine () {
try {
const usage = cliData.usageSections ? commandLineUsage(cliData.usageSections) : ''
const options = commandLineArgs(cliData.definitions)
return { options, usage }
} catch (err) {
handleError(err)
}
const usage = cliData.usageSections ? commandLineUsage(cliData.usageSections) : ''
const options = commandLineArgs(cliData.definitions)
return { options, usage }
}

function handleError (err) {
Expand Down
Loading

0 comments on commit 5f163a5

Please sign in to comment.