Skip to content

Commit

Permalink
⬆️ Fix yargs CLI usage
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbertrand committed Oct 18, 2024
1 parent cfc6a8b commit 5b892d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/cli.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/usr/bin/env node
const controller = require('./controller')
const yargs = require('yargs/yargs')
const { hideBin } = require('yargs/helpers')

module.exports = require('yargs').command(
module.exports = yargs(hideBin(process.argv)).command(
'$0 [input]',
'Insert your Apple Watch Workouts data in an InfluxDB database',
(yargs) => {
yargs.positional('input', {
return yargs.positional('input', {
alias: 'i',
describe: 'path to your Apple Watch Health export.zip file',
normalize: true,
Expand Down

0 comments on commit 5b892d9

Please sign in to comment.