I want to add an option to the mercurial command hg incomming and a specific behavior. Here is what I've done:
entry = extensions.wrapcommand(commands.table, 'incoming', specific_behavior)
entry[1].append(('', 'newopt', '', _('NEW OPT HELP STRING'), _('OPTION_ARGUMENT')))
Currently the OPTION_ARGUMENT is required but I want it optional. Any idea ?
Thanks