[dylan-lang/command-line-parser] 8dec0e: Allow -h to work with invalid positional args.
GitHub <[email protected]> Tue, 11 Aug 2015 06:07:40 -0700
| Newsgroups | gmane.comp.lang.dylan.gwydion.cvs |
|---|---|
| Message-ID | <55c9f39c1b576_7b1e3fb9bd92f2a07552@hookshot-fe6-cp1-prd.iad.github.net.mail> |
Branch: refs/heads/master
Home: https://github.com/dylan-lang/command-line-parser
Commit: 8dec0e757c7634610b6b25dafeb7e79becf2ca96
https://github.com/dylan-lang/command-line-parser/commit/8dec0e757c7634610b6b25dafeb7e79becf2ca96
Author: Bruce Mitchener <[email protected]>
Date: 2015-08-11 (Tue, 11 Aug 2015)
Changed paths:
M command-line-parser.dylan
M tests/command-line-parser-test-suite.dylan
Log Message:
-----------
Allow -h to work with invalid positional args.
Fixes #12.
* command-line-parser.dylan
(parse-command-line): Pass usage and description to %parse-command-line
and let that function handle printing the synopsis when requested.
Also, only print the <usage-error> if it isn't a <help-requested>.
(%parse-command-line): Print the synopsis when requested.
* tests/command-line-parser-test-suite.dylan
(test-min-max-positional-options): Add test to be sure that help is
handled, despite invalid positional args.
Commit: e0258585de211532c805bb6b5ca9b70958951a81
https://github.com/dylan-lang/command-line-parser/commit/e0258585de211532c805bb6b5ca9b70958951a81
Author: Carl Gay <[email protected]>
Date: 2015-08-11 (Tue, 11 Aug 2015)
Changed paths:
M command-line-parser.dylan
M tests/command-line-parser-test-suite.dylan
Log Message:
-----------
Merge pull request #14 from dylan-foundry/help-vs-positional-args
Allow -h to work with invalid positional args.
Compare: https://github.com/dylan-lang/command-line-parser/compare/67e305dfa9c9...e0258585de21
_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter