Skip to content

Commit

Permalink
fix: rename the --access_token option to --access-token
Browse files Browse the repository at this point in the history
  • Loading branch information
timrogers committed Jul 30, 2023
1 parent 41f59b1 commit f262143
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/commands/benefits.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const command = new commander.Command();
command
.name('benefits')
.description('List benefits in your Forma account and their remaining balances')
.option('--access_token <access_token>', 'Access token used to authenticate with Forma')
.option('--access-token <access_token>', 'Access token used to authenticate with Forma')
.action(actionRunner(async (opts) => {
const accessToken = opts.accessToken ?? getAccessToken();
if (!accessToken) {
Expand Down
2 changes: 1 addition & 1 deletion dist/commands/categories.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ command
.name('categories')
.description('List categories available for a Forma benefit')
.requiredOption('--benefit <benefit>', 'The benefit to list categories for')
.option('--access_token <access_token>', 'Access token used to authenticate with Forma')
.option('--access-token <access_token>', 'Access token used to authenticate with Forma')
.action(actionRunner(async (opts) => {
const accessToken = opts.accessToken ?? getAccessToken();
if (!accessToken) {
Expand Down
2 changes: 1 addition & 1 deletion dist/commands/submit-claim.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ command
.requiredOption('--purchase-date <purchase-date>', 'The date of the purchase in YYYY-MM-DD format')
.requiredOption('--description <description>', 'The description of the claim')
.requiredOption('--receipt-path <receipt-path>', 'The path of the receipt. JPEG, PNG, PDF and HEIC files up to 10MB are accepted.')
.option('--access_token <access_token>', 'Access token used to authenticate with Forma')
.option('--access-token <access_token>', 'Access token used to authenticate with Forma')
.option('--openai-api-key <openai_token>', 'An optional OpenAI API key used to infer the benefit and category based on the merchant and description. If this is set, you may omit the `--benefit` and `--category` options. This can also be configured using the `OPENAI_API_KEY` environment variable.', process.env.OPENAI_API_KEY)
.action(actionRunner(async (opts) => {
const { benefit, category, openaiApiKey } = opts;
Expand Down
2 changes: 1 addition & 1 deletion dist/commands/submit-claims-from-csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ command
.name('submit-claims-from-csv')
.description('Submit multiple Forms claims from a CSV. To generate a template CSV to fill in, use the `generate-template-csv` command.')
.requiredOption('--input-path <input_path>', 'The path to the CSV to read claims from')
.option('--access_token <access_token>', 'Access token used to authenticate with Forma')
.option('--access-token <access_token>', 'Access token used to authenticate with Forma')
.action(actionRunner(async (opts) => {
const accessToken = opts.accessToken ?? getAccessToken();
if (!accessToken) {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/benefits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface Arguments {
command
.name('benefits')
.description('List benefits in your Forma account and their remaining balances')
.option('--access_token <access_token>', 'Access token used to authenticate with Forma')
.option('--access-token <access_token>', 'Access token used to authenticate with Forma')
.action(
actionRunner(async (opts: Arguments) => {
const accessToken = opts.accessToken ?? getAccessToken();
Expand Down
2 changes: 1 addition & 1 deletion src/commands/categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ command
.name('categories')
.description('List categories available for a Forma benefit')
.requiredOption('--benefit <benefit>', 'The benefit to list categories for')
.option('--access_token <access_token>', 'Access token used to authenticate with Forma')
.option('--access-token <access_token>', 'Access token used to authenticate with Forma')
.action(
actionRunner(async (opts: Arguments) => {
const accessToken = opts.accessToken ?? getAccessToken();
Expand Down
2 changes: 1 addition & 1 deletion src/commands/submit-claim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ command
'--receipt-path <receipt-path>',
'The path of the receipt. JPEG, PNG, PDF and HEIC files up to 10MB are accepted.',
)
.option('--access_token <access_token>', 'Access token used to authenticate with Forma')
.option('--access-token <access_token>', 'Access token used to authenticate with Forma')
.option(
'--openai-api-key <openai_token>',
'An optional OpenAI API key used to infer the benefit and category based on the merchant and description. If this is set, you may omit the `--benefit` and `--category` options. This can also be configured using the `OPENAI_API_KEY` environment variable.',
Expand Down
2 changes: 1 addition & 1 deletion src/commands/submit-claims-from-csv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ command
'Submit multiple Forms claims from a CSV. To generate a template CSV to fill in, use the `generate-template-csv` command.',
)
.requiredOption('--input-path <input_path>', 'The path to the CSV to read claims from')
.option('--access_token <access_token>', 'Access token used to authenticate with Forma')
.option('--access-token <access_token>', 'Access token used to authenticate with Forma')
.action(
actionRunner(async (opts: Arguments) => {
const accessToken = opts.accessToken ?? getAccessToken();
Expand Down

0 comments on commit f262143

Please sign in to comment.