@@ -84,20 +84,20 @@ async function write(toWrite: unknown, outPath?: string) {
8484async function run ( ) {
8585 await yargs ( process . argv . slice ( 2 ) )
8686 . command (
87- 'fromCredentials [pathToCredential..]' ,
87+ 'fromCredential [pathToCredential..]' ,
8888 'create a Did Configuration Resource from one or more existing Domain Linkage Credentials' ,
8989 ( ygs ) =>
9090 ygs . options ( commonOpts ) . positional ( 'pathToCredential' , {
91- describe : 'Path to a json file containing the credential presentation ' ,
91+ describe : 'Path to a json file containing a Domain Linkage Credential ' ,
9292 type : 'string' ,
9393 demandOption : true ,
9494 array : true ,
9595 } ) ,
9696 async ( { pathToCredential, outFile } ) => {
9797 const credentials : DomainLinkageCredential [ ] = await Promise . all (
98- pathToCredential . map ( async ( pathToCredential ) => {
98+ pathToCredential . map ( async ( path ) => {
9999 try {
100- return JSON . parse ( await readFile ( pathToCredential , { encoding : 'utf-8' } ) )
100+ return JSON . parse ( await readFile ( path , { encoding : 'utf-8' } ) )
101101 } catch ( cause ) {
102102 throw new Error ( `Cannot parse file ${ pathToCredential } ` , { cause } )
103103 }
@@ -107,7 +107,7 @@ async function run() {
107107 try {
108108 didResource = didConfigResourceFromCredentials ( credentials )
109109 } catch ( cause ) {
110- throw new Error ( 'Credential Presentation is not suitable for use in a Did Configuration Resource' , {
110+ throw new Error ( 'Credential is not suitable for use in a Did Configuration Resource' , {
111111 cause,
112112 } )
113113 }
0 commit comments