mirror of
https://github.com/flynx/argv.js.git
synced 2025-10-29 02:40:07 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8d7c8b0a1e
commit
118d9e1c5b
5
argv.js
5
argv.js
@ -243,6 +243,7 @@ object.Constructor('Parser', {
|
|||||||
license: undefined,
|
license: undefined,
|
||||||
usage: '$SCRIPTNAME [OPTIONS]',
|
usage: '$SCRIPTNAME [OPTIONS]',
|
||||||
doc: undefined,
|
doc: undefined,
|
||||||
|
// XXX test this with string value...
|
||||||
examples: undefined,
|
examples: undefined,
|
||||||
// XXX add license and version info...
|
// XXX add license and version info...
|
||||||
//footer: '$SCRIPTNAME v:$VERSION',
|
//footer: '$SCRIPTNAME v:$VERSION',
|
||||||
@ -272,7 +273,6 @@ object.Constructor('Parser', {
|
|||||||
priority: 99,
|
priority: 99,
|
||||||
handler: function(argv, key, value){
|
handler: function(argv, key, value){
|
||||||
var that = this
|
var that = this
|
||||||
|
|
||||||
var expandVars = this.expandTextVars.bind(this)
|
var expandVars = this.expandTextVars.bind(this)
|
||||||
var formDoc = function(doc, env){
|
var formDoc = function(doc, env){
|
||||||
return [doc, ...(env ?
|
return [doc, ...(env ?
|
||||||
@ -301,6 +301,9 @@ object.Constructor('Parser', {
|
|||||||
this.options()
|
this.options()
|
||||||
.map(function([opts, arg, doc, handler]){
|
.map(function([opts, arg, doc, handler]){
|
||||||
return [
|
return [
|
||||||
|
// XXX might be a good idea to keep
|
||||||
|
// short options in a separate
|
||||||
|
// column...
|
||||||
opts
|
opts
|
||||||
.sort(function(a, b){
|
.sort(function(a, b){
|
||||||
return a.length - b.length})
|
return a.length - b.length})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user