Add documentation to the commands for the CLI
This commit is contained in:
@@ -44,14 +44,17 @@ export const handleReceiveCommand = async (
|
||||
args: string[],
|
||||
_options: Record<string, string>,
|
||||
): Promise<{ address: string }> => {
|
||||
// Get the template query, output identifier, and role identifier from the arguments
|
||||
const templateQuery = args[0];
|
||||
const outputIdentifier = args[1];
|
||||
const roleIdentifier = args[2];
|
||||
|
||||
// Log the receive args
|
||||
deps.io.verbose(
|
||||
`Receive args - template: ${templateQuery}, output: ${outputIdentifier}, role: ${roleIdentifier}`,
|
||||
);
|
||||
|
||||
// If no template query or output identifier is provided, print the help message and throw an error
|
||||
if (!templateQuery || !outputIdentifier) {
|
||||
deps.io.verbose("Missing required arguments");
|
||||
printReceiveHelp(deps.io);
|
||||
|
||||
Reference in New Issue
Block a user