Skip to content

Commit

Permalink
Made the --stakeholders flag required
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofVDB1 committed Mar 26, 2024
1 parent 765cbfb commit 33ac642
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/oslo-generator-respec-html/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ The service is executed from the CLI and expects the following parameters:
| Parameter | Description | Required | Possible values |
| --------- | --------- | ----------- | --------------- |
| `--input` | The URL or local file path of an OSLO-compliant RDF file | :heavy_check_mark: ||
| `--output` | The name of the output file | No, defaults to `context.jsonld` ||
| `--output` | The name of the output file | No, defaults to `respec.html` ||
| `--specificationType` | The type of specification | No, defaults to `Vocabulary` | `ApplicationProfile` or `Vocabulary`|
| `--specificationName` | Title of the document | No ||
| `--language` | The language in which the HTML file must be generated (labels) | :heavy_check_mark: ||
| `--stakeholders` | The URL or local file path of an OSLO stakeholders JSON file |No | |
| `--stakeholders` | The URL or local file path of an OSLO stakeholders JSON file | :heavy_check_mark: |`stakeholders.json`|
| `--silent` | Suppress log messages | No | `true` or `false` (default) |

## Usage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ export class HtmlRespecGenerationServiceRunner extends
default: 'Vocabulary',
})
.option('specificationName', { describe: 'The name of the specification' })
.option('stakeholders', { describe: 'The URL or local file path of an OSLO stakeholders JSON file.' })
.option('stakeholders',
{ describe: 'The URL or local file path of an OSLO stakeholders JSON file.' })
.option('silent',
{
describe: 'All logs are suppressed',
default: false,
boolean: true,
})
.demandOption(['input', 'language', 'specificationName'])
.demandOption(['input', 'language', 'specificationName', 'stakeholders'])
.help('h')
.alias('h', 'help');

Expand Down

0 comments on commit 33ac642

Please sign in to comment.