Skip to content

Commit

Permalink
Make options optional
Browse files Browse the repository at this point in the history
see issue google#435
  • Loading branch information
olebergen committed Jun 13, 2022
1 parent b98f092 commit 630e22c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/question.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import { createInterface } from 'node:readline'

export async function question(query: string, options: { choices: string[] }) {
export async function question(query: string, options?: { choices: string[] }) {
let completer = undefined
if (Array.isArray(options?.choices)) {
completer = function completer(line: string) {
Expand Down

0 comments on commit 630e22c

Please sign in to comment.