mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 07:58:34 +02:00
zomg so many keys
This commit is contained in:
parent
9048f09d9f
commit
7e165c6fdc
18 changed files with 354 additions and 75 deletions
|
@ -1,4 +1,5 @@
|
|||
var _ = require('underscore');
|
||||
var intl = require('../intl');
|
||||
|
||||
var Errors = require('../util/errors');
|
||||
var CommandProcessError = Errors.CommandProcessError;
|
||||
|
@ -19,12 +20,12 @@ var shortcutMap = {
|
|||
var instantCommands = [
|
||||
[/^git help($|\s)/, function() {
|
||||
var lines = [
|
||||
'Git Version PCOTTLE.1.0',
|
||||
intl.str('git-version'),
|
||||
'<br/>',
|
||||
'Usage:',
|
||||
_.escape('\t git <command> [<args>]'),
|
||||
intl.str('git-usage'),
|
||||
_.escape(intl.str('git-usage-command')),
|
||||
'<br/>',
|
||||
'Supported commands:',
|
||||
intl.str('git-supported-commands'),
|
||||
'<br/>'
|
||||
];
|
||||
var commands = GitOptionParser.prototype.getMasterOptionMap();
|
||||
|
@ -159,7 +160,10 @@ GitOptionParser.prototype.explodeAndSet = function() {
|
|||
// it's an option, check supportedMap
|
||||
if (this.supportedMap[part] === undefined) {
|
||||
throw new CommandProcessError({
|
||||
msg: 'The option "' + part + '" is not supported'
|
||||
msg: intl.str(
|
||||
'option-not-supported',
|
||||
{ option: part }
|
||||
)
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue