Add additional docs to your commands with Footers.
const echo: Command = { name: 'echo', description: 'Print a string to the terminal', examples: ['echo foo', 'echo "Intense message"'], options: [ { name: 'value', type: String, defaultOption: true, description: 'The value to print' } ], footer: 'Only run this if you really need to', // or footer: { header: 'Additional Info', content: 'Only run this if you really need to' }, // or footer: [ { header: 'Additional Info'
Code in footers
To display code in a footer set code to true.
const echo: Command = { name: 'echo', description: 'Print a string to the terminal', examples: ['echo foo', 'echo "Intense message"'], options: [ { name: 'value', type: String, defaultOption: true, description: 'The value to print' } ], footer: { header: 'Additional Info', code: true, content: 'function foo (){\n return 1;\n}' }};
Require One or Another
To require on of multiple flags simply make on of the items in the required array an array of n options.