cli 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +5 -7
  3. data/Gemfile.lock +29 -37
  4. data/README.md +17 -18
  5. data/Rakefile +1 -28
  6. data/cli.gemspec +14 -84
  7. data/rdoc/CLI/Arguments.html +178 -0
  8. data/rdoc/CLI/DSL/Argument.html +200 -0
  9. data/rdoc/CLI/DSL/Arguments.html +172 -0
  10. data/rdoc/CLI/DSL/Base.html +154 -0
  11. data/rdoc/CLI/DSL/Cast.html +152 -0
  12. data/rdoc/CLI/DSL/Description.html +150 -0
  13. data/rdoc/CLI/DSL/Input.html +143 -0
  14. data/rdoc/CLI/DSL/MultiDefault.html +151 -0
  15. data/rdoc/CLI/DSL/Option.html +143 -0
  16. data/rdoc/CLI/DSL/Options.html +142 -0
  17. data/rdoc/CLI/DSL/Switch.html +267 -0
  18. data/rdoc/CLI/DSL/Value.html +238 -0
  19. data/rdoc/CLI/DSL.html +91 -0
  20. data/rdoc/CLI/Options.html +200 -0
  21. data/rdoc/CLI/ParserError/ArgumentNameSpecifiedTwice.html +138 -0
  22. data/rdoc/CLI/ParserError/LongNameSpecifiedTwiceError.html +138 -0
  23. data/rdoc/CLI/ParserError/MultipleArgumentsSpecifierError.html +138 -0
  24. data/rdoc/CLI/ParserError/NameArgumetNotSymbolError.html +138 -0
  25. data/rdoc/CLI/ParserError/OptionsArgumentNotHashError.html +138 -0
  26. data/rdoc/CLI/ParserError/ShortNameIsInvalidError.html +138 -0
  27. data/rdoc/CLI/ParserError/ShortNameNotSymbolError.html +138 -0
  28. data/rdoc/CLI/ParserError/ShortNameSpecifiedTwiceError.html +138 -0
  29. data/rdoc/CLI/ParserError.html +97 -0
  30. data/rdoc/CLI/ParsingError/CastError.html +138 -0
  31. data/rdoc/CLI/ParsingError/MandatoryArgumentNotSpecifiedError.html +138 -0
  32. data/rdoc/CLI/ParsingError/MandatoryOptionsNotSpecifiedError.html +138 -0
  33. data/rdoc/CLI/ParsingError/MissingOptionValueError.html +138 -0
  34. data/rdoc/CLI/ParsingError/UnknownSwitchError.html +138 -0
  35. data/rdoc/CLI/ParsingError/UsageError.html +97 -0
  36. data/rdoc/CLI/ParsingError.html +97 -0
  37. data/rdoc/CLI/Switches.html +306 -0
  38. data/rdoc/CLI/Values.html +202 -0
  39. data/rdoc/CLI.html +652 -0
  40. data/rdoc/README_md.html +553 -0
  41. data/rdoc/created.rid +7 -0
  42. data/rdoc/css/fonts.css +167 -0
  43. data/rdoc/css/rdoc.css +639 -0
  44. data/rdoc/fonts/Lato-Light.ttf +0 -0
  45. data/rdoc/fonts/Lato-LightItalic.ttf +0 -0
  46. data/rdoc/fonts/Lato-Regular.ttf +0 -0
  47. data/rdoc/fonts/Lato-RegularItalic.ttf +0 -0
  48. data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
  49. data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
  50. data/rdoc/images/add.png +0 -0
  51. data/rdoc/images/arrow_up.png +0 -0
  52. data/rdoc/images/brick.png +0 -0
  53. data/rdoc/images/brick_link.png +0 -0
  54. data/rdoc/images/bug.png +0 -0
  55. data/rdoc/images/bullet_black.png +0 -0
  56. data/rdoc/images/bullet_toggle_minus.png +0 -0
  57. data/rdoc/images/bullet_toggle_plus.png +0 -0
  58. data/rdoc/images/date.png +0 -0
  59. data/rdoc/images/delete.png +0 -0
  60. data/rdoc/images/find.png +0 -0
  61. data/rdoc/images/loadingAnimation.gif +0 -0
  62. data/rdoc/images/macFFBgHack.png +0 -0
  63. data/rdoc/images/package.png +0 -0
  64. data/rdoc/images/page_green.png +0 -0
  65. data/rdoc/images/page_white_text.png +0 -0
  66. data/rdoc/images/page_white_width.png +0 -0
  67. data/rdoc/images/plugin.png +0 -0
  68. data/rdoc/images/ruby.png +0 -0
  69. data/rdoc/images/tag_blue.png +0 -0
  70. data/rdoc/images/tag_green.png +0 -0
  71. data/rdoc/images/transparent.png +0 -0
  72. data/rdoc/images/wrench.png +0 -0
  73. data/rdoc/images/wrench_orange.png +0 -0
  74. data/rdoc/images/zoom.png +0 -0
  75. data/rdoc/index.html +120 -0
  76. data/rdoc/js/darkfish.js +84 -0
  77. data/rdoc/js/navigation.js +105 -0
  78. data/rdoc/js/navigation.js.gz +0 -0
  79. data/rdoc/js/search.js +110 -0
  80. data/rdoc/js/search_index.js +1 -0
  81. data/rdoc/js/search_index.js.gz +0 -0
  82. data/rdoc/js/searcher.js +229 -0
  83. data/rdoc/js/searcher.js.gz +0 -0
  84. data/rdoc/table_of_contents.html +533 -0
  85. data/spec/argument_spec.rb +104 -105
  86. data/spec/cli_spec.rb +27 -28
  87. data/spec/conflict_reporting_spec.rb +16 -17
  88. data/spec/option_spec.rb +60 -61
  89. data/spec/separator_spec.rb +19 -20
  90. data/spec/stdin_spec.rb +13 -14
  91. data/spec/switch_spec.rb +15 -16
  92. data/spec/usage_spec.rb +80 -81
  93. metadata +91 -139
  94. data/.document +0 -5
  95. data/.rspec +0 -1
  96. data/VERSION +0 -1
  97. data/features/cli.feature +0 -9
  98. data/features/step_definitions/cli_steps.rb +0 -0
  99. data/features/support/env.rb +0 -13
data/rdoc/index.html ADDED
@@ -0,0 +1,120 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>cli 1.3.1</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
12
+ </script>
13
+
14
+ <script src="./js/navigation.js" defer></script>
15
+ <script src="./js/search.js" defer></script>
16
+ <script src="./js/search_index.js" defer></script>
17
+ <script src="./js/searcher.js" defer></script>
18
+ <script src="./js/darkfish.js" defer></script>
19
+
20
+ <link href="./css/fonts.css" rel="stylesheet">
21
+ <link href="./css/rdoc.css" rel="stylesheet">
22
+
23
+
24
+ <body id="top" role="document" class="file">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
29
+ <a href="./index.html" rel="home">Home</a>
30
+ </h2>
31
+
32
+ <div id="table-of-contents-navigation">
33
+ <a href="./table_of_contents.html#pages">Pages</a>
34
+ <a href="./table_of_contents.html#classes">Classes</a>
35
+ <a href="./table_of_contents.html#methods">Methods</a>
36
+ </div>
37
+ </div>
38
+
39
+
40
+ <div id="search-section" role="search" class="project-section initially-hidden">
41
+ <form action="#" method="get" accept-charset="utf-8">
42
+ <div id="search-field-wrapper">
43
+ <input id="search-field" role="combobox" aria-label="Search"
44
+ aria-autocomplete="list" aria-controls="search-results"
45
+ type="text" name="search" placeholder="Search" spellcheck="false"
46
+ title="Type to search, Up and Down to navigate, Enter to load">
47
+ </div>
48
+
49
+ <ul id="search-results" aria-label="Search Results"
50
+ aria-busy="false" aria-expanded="false"
51
+ aria-atomic="false" class="initially-hidden"></ul>
52
+ </form>
53
+ </div>
54
+
55
+ </div>
56
+
57
+ <div id="project-metadata">
58
+
59
+ <div id="fileindex-section" class="nav-section">
60
+ <h3>Pages</h3>
61
+
62
+ <ul class="link-list">
63
+ <li><a href="./README_md.html">README</a>
64
+ </ul>
65
+ </div>
66
+
67
+ <div id="classindex-section" class="nav-section">
68
+ <h3>Class and Module Index</h3>
69
+
70
+ <ul class="link-list">
71
+ <li><a href="./CLI.html">CLI</a>
72
+ <li><a href="./CLI/Arguments.html">CLI::Arguments</a>
73
+ <li><a href="./CLI/DSL.html">CLI::DSL</a>
74
+ <li><a href="./CLI/DSL/Argument.html">CLI::DSL::Argument</a>
75
+ <li><a href="./CLI/DSL/Arguments.html">CLI::DSL::Arguments</a>
76
+ <li><a href="./CLI/DSL/Base.html">CLI::DSL::Base</a>
77
+ <li><a href="./CLI/DSL/Cast.html">CLI::DSL::Cast</a>
78
+ <li><a href="./CLI/DSL/Description.html">CLI::DSL::Description</a>
79
+ <li><a href="./CLI/DSL/Input.html">CLI::DSL::Input</a>
80
+ <li><a href="./CLI/DSL/MultiDefault.html">CLI::DSL::MultiDefault</a>
81
+ <li><a href="./CLI/DSL/Option.html">CLI::DSL::Option</a>
82
+ <li><a href="./CLI/DSL/Options.html">CLI::DSL::Options</a>
83
+ <li><a href="./CLI/DSL/Switch.html">CLI::DSL::Switch</a>
84
+ <li><a href="./CLI/DSL/Value.html">CLI::DSL::Value</a>
85
+ <li><a href="./CLI/Options.html">CLI::Options</a>
86
+ <li><a href="./CLI/ParserError.html">CLI::ParserError</a>
87
+ <li><a href="./CLI/ParserError/ArgumentNameSpecifiedTwice.html">CLI::ParserError::ArgumentNameSpecifiedTwice</a>
88
+ <li><a href="./CLI/ParserError/LongNameSpecifiedTwiceError.html">CLI::ParserError::LongNameSpecifiedTwiceError</a>
89
+ <li><a href="./CLI/ParserError/MultipleArgumentsSpecifierError.html">CLI::ParserError::MultipleArgumentsSpecifierError</a>
90
+ <li><a href="./CLI/ParserError/NameArgumetNotSymbolError.html">CLI::ParserError::NameArgumetNotSymbolError</a>
91
+ <li><a href="./CLI/ParserError/OptionsArgumentNotHashError.html">CLI::ParserError::OptionsArgumentNotHashError</a>
92
+ <li><a href="./CLI/ParserError/ShortNameIsInvalidError.html">CLI::ParserError::ShortNameIsInvalidError</a>
93
+ <li><a href="./CLI/ParserError/ShortNameNotSymbolError.html">CLI::ParserError::ShortNameNotSymbolError</a>
94
+ <li><a href="./CLI/ParserError/ShortNameSpecifiedTwiceError.html">CLI::ParserError::ShortNameSpecifiedTwiceError</a>
95
+ <li><a href="./CLI/ParsingError.html">CLI::ParsingError</a>
96
+ <li><a href="./CLI/ParsingError/CastError.html">CLI::ParsingError::CastError</a>
97
+ <li><a href="./CLI/ParsingError/MandatoryArgumentNotSpecifiedError.html">CLI::ParsingError::MandatoryArgumentNotSpecifiedError</a>
98
+ <li><a href="./CLI/ParsingError/MandatoryOptionsNotSpecifiedError.html">CLI::ParsingError::MandatoryOptionsNotSpecifiedError</a>
99
+ <li><a href="./CLI/ParsingError/MissingOptionValueError.html">CLI::ParsingError::MissingOptionValueError</a>
100
+ <li><a href="./CLI/ParsingError/UnknownSwitchError.html">CLI::ParsingError::UnknownSwitchError</a>
101
+ <li><a href="./CLI/ParsingError/UsageError.html">CLI::ParsingError::UsageError</a>
102
+ <li><a href="./CLI/Switches.html">CLI::Switches</a>
103
+ <li><a href="./CLI/Values.html">CLI::Values</a>
104
+ </ul>
105
+ </div>
106
+
107
+ </div>
108
+ </nav>
109
+
110
+ <main role="main">
111
+ <p>This is the API documentation for cli 1.3.1.
112
+ </main>
113
+
114
+
115
+ <footer id="validator-badges" role="contentinfo">
116
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
117
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
118
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
119
+ </footer>
120
+
@@ -0,0 +1,84 @@
1
+ /**
2
+ *
3
+ * Darkfish Page Functions
4
+ * $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $
5
+ *
6
+ * Author: Michael Granger <mgranger@laika.com>
7
+ *
8
+ */
9
+
10
+ /* Provide console simulation for firebug-less environments */
11
+ /*
12
+ if (!("console" in window) || !("firebug" in console)) {
13
+ var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
14
+ "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
15
+
16
+ window.console = {};
17
+ for (var i = 0; i < names.length; ++i)
18
+ window.console[names[i]] = function() {};
19
+ };
20
+ */
21
+
22
+
23
+ function showSource( e ) {
24
+ var target = e.target;
25
+ while (!target.classList.contains('method-detail')) {
26
+ target = target.parentNode;
27
+ }
28
+ if (typeof target !== "undefined" && target !== null) {
29
+ target = target.querySelector('.method-source-code');
30
+ }
31
+ if (typeof target !== "undefined" && target !== null) {
32
+ target.classList.toggle('active-menu')
33
+ }
34
+ };
35
+
36
+ function hookSourceViews() {
37
+ document.querySelectorAll('.method-heading').forEach(function (codeObject) {
38
+ codeObject.addEventListener('click', showSource);
39
+ });
40
+ };
41
+
42
+ function hookSearch() {
43
+ var input = document.querySelector('#search-field');
44
+ var result = document.querySelector('#search-results');
45
+ result.classList.remove("initially-hidden");
46
+
47
+ var search_section = document.querySelector('#search-section');
48
+ search_section.classList.remove("initially-hidden");
49
+
50
+ var search = new Search(search_data, input, result);
51
+
52
+ search.renderItem = function(result) {
53
+ var li = document.createElement('li');
54
+ var html = '';
55
+
56
+ // TODO add relative path to <script> per-page
57
+ html += '<p class="search-match"><a href="' + index_rel_prefix + result.path + '">' + this.hlt(result.title);
58
+ if (result.params)
59
+ html += '<span class="params">' + result.params + '</span>';
60
+ html += '</a>';
61
+
62
+
63
+ if (result.namespace)
64
+ html += '<p class="search-namespace">' + this.hlt(result.namespace);
65
+
66
+ if (result.snippet)
67
+ html += '<div class="search-snippet">' + result.snippet + '</div>';
68
+
69
+ li.innerHTML = html;
70
+
71
+ return li;
72
+ }
73
+
74
+ search.select = function(result) {
75
+ window.location.href = result.firstChild.firstChild.href;
76
+ }
77
+
78
+ search.scrollIntoView = search.scrollInWindow;
79
+ };
80
+
81
+ document.addEventListener('DOMContentLoaded', function() {
82
+ hookSourceViews();
83
+ hookSearch();
84
+ });
@@ -0,0 +1,105 @@
1
+ /*
2
+ * Navigation allows movement using the arrow keys through the search results.
3
+ *
4
+ * When using this library you will need to set scrollIntoView to the
5
+ * appropriate function for your layout. Use scrollInWindow if the container
6
+ * is not scrollable and scrollInElement if the container is a separate
7
+ * scrolling region.
8
+ */
9
+ Navigation = new function() {
10
+ this.initNavigation = function() {
11
+ var _this = this;
12
+
13
+ document.addEventListener('keydown', function(e) {
14
+ _this.onkeydown(e);
15
+ });
16
+
17
+ this.navigationActive = true;
18
+ }
19
+
20
+ this.setNavigationActive = function(state) {
21
+ this.navigationActive = state;
22
+ }
23
+
24
+ this.onkeydown = function(e) {
25
+ if (!this.navigationActive) return;
26
+ switch(e.keyCode) {
27
+ case 37: //Event.KEY_LEFT:
28
+ if (this.moveLeft()) e.preventDefault();
29
+ break;
30
+ case 38: //Event.KEY_UP:
31
+ if (e.keyCode == 38 || e.ctrlKey) {
32
+ if (this.moveUp()) e.preventDefault();
33
+ }
34
+ break;
35
+ case 39: //Event.KEY_RIGHT:
36
+ if (this.moveRight()) e.preventDefault();
37
+ break;
38
+ case 40: //Event.KEY_DOWN:
39
+ if (e.keyCode == 40 || e.ctrlKey) {
40
+ if (this.moveDown()) e.preventDefault();
41
+ }
42
+ break;
43
+ case 13: //Event.KEY_RETURN:
44
+ if (this.current) e.preventDefault();
45
+ this.select(this.current);
46
+ break;
47
+ }
48
+ if (e.ctrlKey && e.shiftKey) this.select(this.current);
49
+ }
50
+
51
+ this.moveRight = function() {
52
+ }
53
+
54
+ this.moveLeft = function() {
55
+ }
56
+
57
+ this.move = function(isDown) {
58
+ }
59
+
60
+ this.moveUp = function() {
61
+ return this.move(false);
62
+ }
63
+
64
+ this.moveDown = function() {
65
+ return this.move(true);
66
+ }
67
+
68
+ /*
69
+ * Scrolls to the given element in the scrollable element view.
70
+ */
71
+ this.scrollInElement = function(element, view) {
72
+ var offset, viewHeight, viewScroll, height;
73
+ offset = element.offsetTop;
74
+ height = element.offsetHeight;
75
+ viewHeight = view.offsetHeight;
76
+ viewScroll = view.scrollTop;
77
+
78
+ if (offset - viewScroll + height > viewHeight) {
79
+ view.scrollTop = offset - viewHeight + height;
80
+ }
81
+ if (offset < viewScroll) {
82
+ view.scrollTop = offset;
83
+ }
84
+ }
85
+
86
+ /*
87
+ * Scrolls to the given element in the window. The second argument is
88
+ * ignored
89
+ */
90
+ this.scrollInWindow = function(element, ignored) {
91
+ var offset, viewHeight, viewScroll, height;
92
+ offset = element.offsetTop;
93
+ height = element.offsetHeight;
94
+ viewHeight = window.innerHeight;
95
+ viewScroll = window.scrollY;
96
+
97
+ if (offset - viewScroll + height > viewHeight) {
98
+ window.scrollTo(window.scrollX, offset - viewHeight + height);
99
+ }
100
+ if (offset < viewScroll) {
101
+ window.scrollTo(window.scrollX, offset);
102
+ }
103
+ }
104
+ }
105
+
Binary file
data/rdoc/js/search.js ADDED
@@ -0,0 +1,110 @@
1
+ Search = function(data, input, result) {
2
+ this.data = data;
3
+ this.input = input;
4
+ this.result = result;
5
+
6
+ this.current = null;
7
+ this.view = this.result.parentNode;
8
+ this.searcher = new Searcher(data.index);
9
+ this.init();
10
+ }
11
+
12
+ Search.prototype = Object.assign({}, Navigation, new function() {
13
+ var suid = 1;
14
+
15
+ this.init = function() {
16
+ var _this = this;
17
+ var observer = function(e) {
18
+ switch(e.keyCode) {
19
+ case 38: // Event.KEY_UP
20
+ case 40: // Event.KEY_DOWN
21
+ return;
22
+ }
23
+ _this.search(_this.input.value);
24
+ };
25
+ this.input.addEventListener('keyup', observer);
26
+ this.input.addEventListener('click', observer); // mac's clear field
27
+
28
+ this.searcher.ready(function(results, isLast) {
29
+ _this.addResults(results, isLast);
30
+ })
31
+
32
+ this.initNavigation();
33
+ this.setNavigationActive(false);
34
+ }
35
+
36
+ this.search = function(value, selectFirstMatch) {
37
+ value = value.trim().toLowerCase();
38
+ if (value) {
39
+ this.setNavigationActive(true);
40
+ } else {
41
+ this.setNavigationActive(false);
42
+ }
43
+
44
+ if (value == '') {
45
+ this.lastQuery = value;
46
+ this.result.innerHTML = '';
47
+ this.result.setAttribute('aria-expanded', 'false');
48
+ this.setNavigationActive(false);
49
+ } else if (value != this.lastQuery) {
50
+ this.lastQuery = value;
51
+ this.result.setAttribute('aria-busy', 'true');
52
+ this.result.setAttribute('aria-expanded', 'true');
53
+ this.firstRun = true;
54
+ this.searcher.find(value);
55
+ }
56
+ }
57
+
58
+ this.addResults = function(results, isLast) {
59
+ var target = this.result;
60
+ if (this.firstRun && (results.length > 0 || isLast)) {
61
+ this.current = null;
62
+ this.result.innerHTML = '';
63
+ }
64
+
65
+ for (var i=0, l = results.length; i < l; i++) {
66
+ var item = this.renderItem.call(this, results[i]);
67
+ item.setAttribute('id', 'search-result-' + target.childElementCount);
68
+ target.appendChild(item);
69
+ };
70
+
71
+ if (this.firstRun && results.length > 0) {
72
+ this.firstRun = false;
73
+ this.current = target.firstChild;
74
+ this.current.classList.add('search-selected');
75
+ }
76
+ //TODO: ECMAScript
77
+ //if (jQuery.browser.msie) this.$element[0].className += '';
78
+
79
+ if (isLast) this.result.setAttribute('aria-busy', 'false');
80
+ }
81
+
82
+ this.move = function(isDown) {
83
+ if (!this.current) return;
84
+ var next = isDown ? this.current.nextElementSibling : this.current.previousElementSibling;
85
+ if (next) {
86
+ this.current.classList.remove('search-selected');
87
+ next.classList.add('search-selected');
88
+ this.input.setAttribute('aria-activedescendant', next.getAttribute('id'));
89
+ this.scrollIntoView(next, this.view);
90
+ this.current = next;
91
+ this.input.value = next.firstChild.firstChild.text;
92
+ this.input.select();
93
+ }
94
+ return true;
95
+ }
96
+
97
+ this.hlt = function(html) {
98
+ return this.escapeHTML(html).
99
+ replace(/\u0001/g, '<em>').
100
+ replace(/\u0002/g, '</em>');
101
+ }
102
+
103
+ this.escapeHTML = function(html) {
104
+ return html.replace(/[&<>]/g, function(c) {
105
+ return '&#' + c.charCodeAt(0) + ';';
106
+ });
107
+ }
108
+
109
+ });
110
+
@@ -0,0 +1 @@
1
+ var search_data = {"index":{"searchIndex":["cli","arguments","dsl","argument","arguments","base","cast","description","input","multidefault","option","options","switch","value","options","parsererror","argumentnamespecifiedtwice","longnamespecifiedtwiceerror","multipleargumentsspecifiererror","nameargumetnotsymbolerror","optionsargumentnothasherror","shortnameisinvaliderror","shortnamenotsymbolerror","shortnamespecifiedtwiceerror","parsingerror","casterror","mandatoryargumentnotspecifiederror","mandatoryoptionsnotspecifiederror","missingoptionvalueerror","unknownswitcherror","usageerror","switches","values","<<()","append()","argument()","arguments()","cast()","cast()","default()","default()","default_cast()","default_cast()","default_label()","description()","description()","description?()","find()","find_long()","find_short()","get()","has?()","has_default?()","has_default_label?()","has_long?()","has_short?()","has_short?()","is_switch?()","mandatory()","mandatory()","mandatory?()","multiary()","multiary()","multiary?()","multiary?()","multiary?()","multiary?()","name()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","option()","optional()","options()","parse()","parse!()","set()","short()","stdin()","switch()","switch()","switch_short()","to_s()","to_s()","to_s()","unarry()","usage()","usage!()","value()","version()","readme"],"longSearchIndex":["cli","cli::arguments","cli::dsl","cli::dsl::argument","cli::dsl::arguments","cli::dsl::base","cli::dsl::cast","cli::dsl::description","cli::dsl::input","cli::dsl::multidefault","cli::dsl::option","cli::dsl::options","cli::dsl::switch","cli::dsl::value","cli::options","cli::parsererror","cli::parsererror::argumentnamespecifiedtwice","cli::parsererror::longnamespecifiedtwiceerror","cli::parsererror::multipleargumentsspecifiererror","cli::parsererror::nameargumetnotsymbolerror","cli::parsererror::optionsargumentnothasherror","cli::parsererror::shortnameisinvaliderror","cli::parsererror::shortnamenotsymbolerror","cli::parsererror::shortnamespecifiedtwiceerror","cli::parsingerror","cli::parsingerror::casterror","cli::parsingerror::mandatoryargumentnotspecifiederror","cli::parsingerror::mandatoryoptionsnotspecifiederror","cli::parsingerror::missingoptionvalueerror","cli::parsingerror::unknownswitcherror","cli::parsingerror::usageerror","cli::switches","cli::values","cli::switches#<<()","cli::values#append()","cli#argument()","cli#arguments()","cli::dsl::arguments#cast()","cli::dsl::cast#cast()","cli::dsl::multidefault#default()","cli::dsl::value#default()","cli::dsl::multidefault#default_cast()","cli::dsl::value#default_cast()","cli::dsl::value#default_label()","cli#description()","cli::dsl::description#description()","cli::dsl::description#description?()","cli::switches#find()","cli::switches#find_long()","cli::switches#find_short()","cli::values#get()","cli::arguments#has?()","cli::dsl::value#has_default?()","cli::dsl::value#has_default_label?()","cli::switches#has_long?()","cli::dsl::switch#has_short?()","cli::switches#has_short?()","cli::switches::is_switch?()","cli::arguments#mandatory()","cli::options#mandatory()","cli::dsl::value#mandatory?()","cli::arguments#multiary()","cli::options#multiary()","cli::dsl::argument#multiary?()","cli::dsl::arguments#multiary?()","cli::dsl::option#multiary?()","cli::dsl::options#multiary?()","cli::name()","cli::new()","cli::dsl::argument::new()","cli::dsl::base::new()","cli::dsl::switch::new()","cli::parsererror::argumentnamespecifiedtwice::new()","cli::parsererror::longnamespecifiedtwiceerror::new()","cli::parsererror::multipleargumentsspecifiererror::new()","cli::parsererror::nameargumetnotsymbolerror::new()","cli::parsererror::optionsargumentnothasherror::new()","cli::parsererror::shortnameisinvaliderror::new()","cli::parsererror::shortnamenotsymbolerror::new()","cli::parsererror::shortnamespecifiedtwiceerror::new()","cli::parsingerror::casterror::new()","cli::parsingerror::mandatoryargumentnotspecifiederror::new()","cli::parsingerror::mandatoryoptionsnotspecifiederror::new()","cli::parsingerror::missingoptionvalueerror::new()","cli::parsingerror::unknownswitcherror::new()","cli::switches::new()","cli#option()","cli::options#optional()","cli#options()","cli#parse()","cli#parse!()","cli::values#set()","cli::dsl::switch#short()","cli#stdin()","cli#switch()","cli::dsl::switch#switch()","cli::dsl::switch#switch_short()","cli::dsl::argument#to_s()","cli::dsl::input#to_s()","cli::dsl::switch#to_s()","cli::options#unarry()","cli#usage()","cli#usage!()","cli::values#value()","cli#version()",""],"info":[["CLI","","CLI.html","",""],["CLI::Arguments","","CLI/Arguments.html","",""],["CLI::DSL","","CLI/DSL.html","",""],["CLI::DSL::Argument","","CLI/DSL/Argument.html","",""],["CLI::DSL::Arguments","","CLI/DSL/Arguments.html","",""],["CLI::DSL::Base","","CLI/DSL/Base.html","",""],["CLI::DSL::Cast","","CLI/DSL/Cast.html","",""],["CLI::DSL::Description","","CLI/DSL/Description.html","",""],["CLI::DSL::Input","","CLI/DSL/Input.html","",""],["CLI::DSL::MultiDefault","","CLI/DSL/MultiDefault.html","",""],["CLI::DSL::Option","","CLI/DSL/Option.html","",""],["CLI::DSL::Options","","CLI/DSL/Options.html","",""],["CLI::DSL::Switch","","CLI/DSL/Switch.html","",""],["CLI::DSL::Value","","CLI/DSL/Value.html","",""],["CLI::Options","","CLI/Options.html","",""],["CLI::ParserError","","CLI/ParserError.html","",""],["CLI::ParserError::ArgumentNameSpecifiedTwice","","CLI/ParserError/ArgumentNameSpecifiedTwice.html","",""],["CLI::ParserError::LongNameSpecifiedTwiceError","","CLI/ParserError/LongNameSpecifiedTwiceError.html","",""],["CLI::ParserError::MultipleArgumentsSpecifierError","","CLI/ParserError/MultipleArgumentsSpecifierError.html","",""],["CLI::ParserError::NameArgumetNotSymbolError","","CLI/ParserError/NameArgumetNotSymbolError.html","",""],["CLI::ParserError::OptionsArgumentNotHashError","","CLI/ParserError/OptionsArgumentNotHashError.html","",""],["CLI::ParserError::ShortNameIsInvalidError","","CLI/ParserError/ShortNameIsInvalidError.html","",""],["CLI::ParserError::ShortNameNotSymbolError","","CLI/ParserError/ShortNameNotSymbolError.html","",""],["CLI::ParserError::ShortNameSpecifiedTwiceError","","CLI/ParserError/ShortNameSpecifiedTwiceError.html","",""],["CLI::ParsingError","","CLI/ParsingError.html","",""],["CLI::ParsingError::CastError","","CLI/ParsingError/CastError.html","",""],["CLI::ParsingError::MandatoryArgumentNotSpecifiedError","","CLI/ParsingError/MandatoryArgumentNotSpecifiedError.html","",""],["CLI::ParsingError::MandatoryOptionsNotSpecifiedError","","CLI/ParsingError/MandatoryOptionsNotSpecifiedError.html","",""],["CLI::ParsingError::MissingOptionValueError","","CLI/ParsingError/MissingOptionValueError.html","",""],["CLI::ParsingError::UnknownSwitchError","","CLI/ParsingError/UnknownSwitchError.html","",""],["CLI::ParsingError::UsageError","","CLI/ParsingError/UsageError.html","",""],["CLI::Switches","","CLI/Switches.html","",""],["CLI::Values","","CLI/Values.html","",""],["<<","CLI::Switches","CLI/Switches.html#method-i-3C-3C","(switch_dsl)",""],["append","CLI::Values","CLI/Values.html#method-i-append","(argument, value)",""],["argument","CLI","CLI.html#method-i-argument","(name, options = {})",""],["arguments","CLI","CLI.html#method-i-arguments","(name, options = {})",""],["cast","CLI::DSL::Arguments","CLI/DSL/Arguments.html#method-i-cast","(values)",""],["cast","CLI::DSL::Cast","CLI/DSL/Cast.html#method-i-cast","(value)",""],["default","CLI::DSL::MultiDefault","CLI/DSL/MultiDefault.html#method-i-default","()",""],["default","CLI::DSL::Value","CLI/DSL/Value.html#method-i-default","()",""],["default_cast","CLI::DSL::MultiDefault","CLI/DSL/MultiDefault.html#method-i-default_cast","()",""],["default_cast","CLI::DSL::Value","CLI/DSL/Value.html#method-i-default_cast","()",""],["default_label","CLI::DSL::Value","CLI/DSL/Value.html#method-i-default_label","()",""],["description","CLI","CLI.html#method-i-description","(desc)",""],["description","CLI::DSL::Description","CLI/DSL/Description.html#method-i-description","()",""],["description?","CLI::DSL::Description","CLI/DSL/Description.html#method-i-description-3F","()",""],["find","CLI::Switches","CLI/Switches.html#method-i-find","(arg)",""],["find_long","CLI::Switches","CLI/Switches.html#method-i-find_long","(arg)",""],["find_short","CLI::Switches","CLI/Switches.html#method-i-find_short","(arg)",""],["get","CLI::Values","CLI/Values.html#method-i-get","(argument)",""],["has?","CLI::Arguments","CLI/Arguments.html#method-i-has-3F","(argument_dsl)",""],["has_default?","CLI::DSL::Value","CLI/DSL/Value.html#method-i-has_default-3F","()",""],["has_default_label?","CLI::DSL::Value","CLI/DSL/Value.html#method-i-has_default_label-3F","()",""],["has_long?","CLI::Switches","CLI/Switches.html#method-i-has_long-3F","(switch_dsl)",""],["has_short?","CLI::DSL::Switch","CLI/DSL/Switch.html#method-i-has_short-3F","()",""],["has_short?","CLI::Switches","CLI/Switches.html#method-i-has_short-3F","(switch_dsl)",""],["is_switch?","CLI::Switches","CLI/Switches.html#method-c-is_switch-3F","(arg)",""],["mandatory","CLI::Arguments","CLI/Arguments.html#method-i-mandatory","()",""],["mandatory","CLI::Options","CLI/Options.html#method-i-mandatory","()",""],["mandatory?","CLI::DSL::Value","CLI/DSL/Value.html#method-i-mandatory-3F","()",""],["multiary","CLI::Arguments","CLI/Arguments.html#method-i-multiary","()",""],["multiary","CLI::Options","CLI/Options.html#method-i-multiary","()",""],["multiary?","CLI::DSL::Argument","CLI/DSL/Argument.html#method-i-multiary-3F","()",""],["multiary?","CLI::DSL::Arguments","CLI/DSL/Arguments.html#method-i-multiary-3F","()",""],["multiary?","CLI::DSL::Option","CLI/DSL/Option.html#method-i-multiary-3F","()",""],["multiary?","CLI::DSL::Options","CLI/DSL/Options.html#method-i-multiary-3F","()",""],["name","CLI","CLI.html#method-c-name","()",""],["new","CLI","CLI.html#method-c-new","(&block)",""],["new","CLI::DSL::Argument","CLI/DSL/Argument.html#method-c-new","(name, options = {})",""],["new","CLI::DSL::Base","CLI/DSL/Base.html#method-c-new","(name, options = {})",""],["new","CLI::DSL::Switch","CLI/DSL/Switch.html#method-c-new","(name, options = {})",""],["new","CLI::ParserError::ArgumentNameSpecifiedTwice","CLI/ParserError/ArgumentNameSpecifiedTwice.html#method-c-new","(arg)",""],["new","CLI::ParserError::LongNameSpecifiedTwiceError","CLI/ParserError/LongNameSpecifiedTwiceError.html#method-c-new","(what, switch_dsl)",""],["new","CLI::ParserError::MultipleArgumentsSpecifierError","CLI/ParserError/MultipleArgumentsSpecifierError.html#method-c-new","(arguments_dsl)",""],["new","CLI::ParserError::NameArgumetNotSymbolError","CLI/ParserError/NameArgumetNotSymbolError.html#method-c-new","(type, arg)",""],["new","CLI::ParserError::OptionsArgumentNotHashError","CLI/ParserError/OptionsArgumentNotHashError.html#method-c-new","(type, arg)",""],["new","CLI::ParserError::ShortNameIsInvalidError","CLI/ParserError/ShortNameIsInvalidError.html#method-c-new","(switch_dsl, short)",""],["new","CLI::ParserError::ShortNameNotSymbolError","CLI/ParserError/ShortNameNotSymbolError.html#method-c-new","(switch_dsl, short)",""],["new","CLI::ParserError::ShortNameSpecifiedTwiceError","CLI/ParserError/ShortNameSpecifiedTwiceError.html#method-c-new","(what, switch_dsl)",""],["new","CLI::ParsingError::CastError","CLI/ParsingError/CastError.html#method-c-new","(arg, cast_name, error)",""],["new","CLI::ParsingError::MandatoryArgumentNotSpecifiedError","CLI/ParsingError/MandatoryArgumentNotSpecifiedError.html#method-c-new","(arg)",""],["new","CLI::ParsingError::MandatoryOptionsNotSpecifiedError","CLI/ParsingError/MandatoryOptionsNotSpecifiedError.html#method-c-new","(options)",""],["new","CLI::ParsingError::MissingOptionValueError","CLI/ParsingError/MissingOptionValueError.html#method-c-new","(option)",""],["new","CLI::ParsingError::UnknownSwitchError","CLI/ParsingError/UnknownSwitchError.html#method-c-new","(arg)",""],["new","CLI::Switches","CLI/Switches.html#method-c-new","()",""],["option","CLI","CLI.html#method-i-option","(name, options = {})",""],["optional","CLI::Options","CLI/Options.html#method-i-optional","()",""],["options","CLI","CLI.html#method-i-options","(name, options = {})",""],["parse","CLI","CLI.html#method-i-parse","(_argv = ARGV, stdin = STDIN, stderr = STDERR)",""],["parse!","CLI","CLI.html#method-i-parse-21","(argv = ARGV, stdin = STDIN, stderr = STDERR, stdout = STDOUT)",""],["set","CLI::Values","CLI/Values.html#method-i-set","(argument)",""],["short","CLI::DSL::Switch","CLI/DSL/Switch.html#method-i-short","()",""],["stdin","CLI","CLI.html#method-i-stdin","(name = :data, options = {})",""],["switch","CLI","CLI.html#method-i-switch","(name, options = {})",""],["switch","CLI::DSL::Switch","CLI/DSL/Switch.html#method-i-switch","()",""],["switch_short","CLI::DSL::Switch","CLI/DSL/Switch.html#method-i-switch_short","()",""],["to_s","CLI::DSL::Argument","CLI/DSL/Argument.html#method-i-to_s","()",""],["to_s","CLI::DSL::Input","CLI/DSL/Input.html#method-i-to_s","()",""],["to_s","CLI::DSL::Switch","CLI/DSL/Switch.html#method-i-to_s","()",""],["unarry","CLI::Options","CLI/Options.html#method-i-unarry","()",""],["usage","CLI","CLI.html#method-i-usage","(msg = nil)",""],["usage!","CLI","CLI.html#method-i-usage-21","(msg = nil, io = STDERR)",""],["value","CLI::Values","CLI/Values.html#method-i-value","(argument, value)",""],["version","CLI","CLI.html#method-i-version","(version)",""],["README","","README_md.html","","<p>CLI\n<p>Command Line Interface gem allows you to quickly specify command argument parser that will automatically …\n"]]}}
Binary file