Skip to content

Commit

Permalink
Add help cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
tedspare committed Oct 9, 2024
1 parent a9e8ced commit e2b4b91
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- [2024-10-09] [Add help cmd](https://github.com/RubricLab/memory/commit/9f35d0016dcd5d0f909cb77c2ea33ef70da60fb1)
- [2024-10-09] [Scaffold evals](https://github.com/RubricLab/memory/commit/3801514a795881c74ea225d02eeae001a07ee57a)
- [2024-10-04] [bleed for mono](https://github.com/RubricLab/memory/commit/6db7d39072c60714068bcb00b07bbf917d76b4b8)
- [2024-10-03] [mod lint script](https://github.com/RubricLab/memory/commit/e5a4392d2e7852f0d1424f730aa1316bfeb66f3b)
Expand Down
19 changes: 18 additions & 1 deletion evals/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,26 @@ const args = parseArgs({
fast: {
type: 'boolean',
default: false
},
help: {
type: 'boolean',
default: false
}
},
allowPositionals: true
})

if (import.meta.path === Bun.main) main({ fast: args.values.fast })
if (import.meta.path === Bun.main) {
if (args.values.help) {
console.log(`
Usage: bun evals/index.ts [options]
Options:
--fast Use gpt-4o-mini instead of gpt-4o-2024-08-06
--help Show this help message
`)
process.exit(0)
}

main({ fast: args.values.fast })
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@rubriclab/memory",
"module": "index.ts",
"version": "0.0.4",
"version": "0.0.5",
"private": false,
"type": "module",
"devDependencies": {
Expand Down

0 comments on commit e2b4b91

Please sign in to comment.