UNPKG

wikibase-cli

Version:

A command-line interface to Wikibase

17 lines (15 loc) 592 B
#!/usr/bin/env node import program from 'commander' import { commandWithTemplateCustomHelp } from '#lib/command_with_template_custom_help' import { execEditCommand } from '#lib/edit/edit_command' import { polymorphicCommandArgsParser } from '#lib/polymorphic_command_args_parser' const inlineArgsParser = ([ id, language ]) => { return [ { id, language, value: null } ] } program.customArgsParser = polymorphicCommandArgsParser({ inlineArgsParser }) program.customHelpOption = commandWithTemplateCustomHelp execEditCommand({ name: 'remove-label', section: 'label', action: 'set', })