Skip to content

Commit

Permalink
Upgrade dependencies; Migrate from commander@10 to commander@12
Browse files Browse the repository at this point in the history
  • Loading branch information
fnogatz committed Jul 6, 2024
1 parent 08c7d82 commit d9cc98c
Show file tree
Hide file tree
Showing 3 changed files with 368 additions and 50 deletions.
4 changes: 2 additions & 2 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const path = require('path')
const os = require('os')
const fs = require('fs')
const program = require('commander')
const { program, Option } = require('commander')
const strftime = require('strftime')
const editor = require('editor')
const stringify = require('json-stable-stringify')
Expand Down Expand Up @@ -108,7 +108,7 @@ program
.option('--week [value]', 'show given week (default: current week)')
.option('--month [value]', 'show given month (default: current month)')
.option('--year [value]', 'show given year (default: current year)')
.addOption(new program.Option('--reportDay <value>', 'day to use').hideHelp())
.addOption(new Option('--reportDay <value>', 'day to use').hideHelp())
.option('-a, --all', 'include archived dates')
.action(report)

Expand Down
Loading

0 comments on commit d9cc98c

Please sign in to comment.