From 16c9ab575f242c0a390116b242f9571046edc715 Mon Sep 17 00:00:00 2001 From: Jonathan Summers-Muir Date: Thu, 15 Dec 2022 17:08:55 +0800 Subject: [PATCH] add isOptional prop to CLI commands (#10995) * add isOptional prop to CLI commands * fix: add required field to flag type * chore: fix indentation Co-authored-by: Han Qiao --- apps/docs/components/reference/CLICommandSection.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/docs/components/reference/CLICommandSection.tsx b/apps/docs/components/reference/CLICommandSection.tsx index 89cae3bfb24..9f685157482 100644 --- a/apps/docs/components/reference/CLICommandSection.tsx +++ b/apps/docs/components/reference/CLICommandSection.tsx @@ -27,6 +27,7 @@ export type Flag = { description: string default_value: string accepted_values: AcceptedValue[] + required?: boolean } export type AcceptedValue = { @@ -107,7 +108,7 @@ const CliCommandSection = (props) => { {command.flags.map((flag: Flag) => ( <>
  • - + {flag?.accepted_values && ( {flag?.accepted_values.map((value) => {