wikibase-cli
Version:
A command-line interface to Wikibase
17 lines (15 loc) • 604 B
JavaScript
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-description',
section: 'description',
action: 'set',
})