| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ca658c8 commit 17a4e5e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,8 +12,15 @@ import cp from 'node:child_process'; | |||
| 12 | 12 | import fs from 'node:fs'; | |
| 13 | 13 | import path from 'node:path'; | |
| 14 | 14 | import readline from 'node:readline'; | |
| 15 | + import { parseArgs } from 'node:util'; | ||
| 15 | 16 | ||
| 16 | - const SINCE = process.argv[2] || '3 months ago'; | ||
| 17 | + const args = parseArgs({ | ||
| 18 | + allowPositionals: true, | ||
| 19 | + options: { verbose: { type: 'boolean', short: 'v' } } | ||
| 20 | + }); | ||
| 21 | + | ||
| 22 | + const verbose = args.values.verbose; | ||
| 23 | + const SINCE = args.positionals[0] || '3 months ago'; | ||
| 17 | 24 | ||
| 18 | 25 | async function runGitCommand(cmd, options = {}) { | |
| 19 | 26 | const childProcess = cp.spawn('/bin/sh', ['-c', cmd], { | |
@@ -271,3 +278,8 @@ if (inactive.length) { | |||
| 271 | 278 | fs.writeFileSync(new URL('../README.md', import.meta.url), newReadmeText); | |
| 272 | 279 | } | |
| 273 | 280 | } | |
| 281 | + | ||
| 282 | + if (verbose) { | ||
| 283 | + console.log(attendance); | ||
| 284 | + console.log(votingRecords); | ||
| 285 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments