@@ -680,36 +680,36 @@ export async function createCLI() {
680680 . description ( "Create a new access list contract" )
681681 . argument ( "<name>" , "Name for the access list" )
682682 . argument ( "<symbol>" , "Symbol for the access list" )
683+ . argument (
684+ "[initialUsers]" ,
685+ "Comma-separated list of initial user addresses" ,
686+ ""
687+ )
683688 . argument (
684689 "[transferable]" ,
685690 "Whether tokens are transferable (true/false)" ,
686691 "false"
687692 )
688- . argument (
689- "[initialUsers]" ,
693+ . option ( "-n, --name <name>" , "Name for the access list" )
694+ . option ( "-s, --symbol <symbol>" , "Symbol for the access list" )
695+ . option (
696+ "-u, --initial-users [initialUsers]" ,
690697 "Comma-separated list of initial user addresses" ,
691698 ""
692699 )
693- . option ( "-n, --name <name>" , "Name for the access list" )
694- . option ( "-s, --symbol <symbol>" , "Symbol for the access list" )
695700 . option (
696701 "-t, --transferable [transferable]" ,
697702 "Whether tokens are transferable (true/false)" ,
698703 "false"
699704 )
700- . option (
701- "-u, --users [initialUsers]" ,
702- "Comma-separated list of initial user addresses" ,
703- ""
704- )
705- . action ( async ( name , symbol , transferable , initialUsers , options ) => {
705+ . action ( async ( name , symbol , initialUsers , transferable , options ) => {
706706 const { signer, chainId } = await initializeSigner ( ) ;
707707 const commands = new Commands ( signer , chainId ) ;
708708 await commands . createAccessList ( [
709709 options . name || name ,
710710 options . symbol || symbol ,
711711 options . transferable || transferable ,
712- options . users || initialUsers ,
712+ options . initialUsers || initialUsers ,
713713 ] ) ;
714714 } ) ;
715715
@@ -818,8 +818,8 @@ export async function createCLI() {
818818
819819 program
820820 . command ( "createBucket" )
821- . description ( "Create a new persistent-storage bucket gated by a single access list (chain inferred from RPC)" )
822- . argument ( "< accessListAddress> " , "Access list contract address (0x…)" )
821+ . description ( "Create a new persistent-storage bucket. Pass an access list to gate it; omit for owner-only access (chain inferred from RPC)" )
822+ . argument ( "[ accessListAddress] " , "Access list contract address (0x…); omit for owner-only access " )
823823 . action ( async ( accessListAddress ) => {
824824 const { signer, chainId } = await initializeSigner ( ) ;
825825 const commands = new Commands ( signer , chainId ) ;
0 commit comments