cmdparse 3.0.4 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/COPYING +1 -1
- data/README.md +5 -5
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/doc/default.template +2 -2
- data/doc/index.page +1 -1
- data/doc/news.page +7 -0
- data/lib/cmdparse.rb +4 -4
- data/webgen.config +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e861f5a1c4fe2e9cbad48f794f090891e989679adee5a9c0eb5fccbcf58705f7
|
4
|
+
data.tar.gz: 920f8071e1567b47d6a09491a68ea450323d75c33f985ac6c95389ac326eac23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5453f10a2fa2ed1e169f2ed132a43cbc158f70b8df32bebaa84bee75625f1546a9420d18740688afdaf9703e25c020211e311b5b7ea0fbeb0d631501be493d62
|
7
|
+
data.tar.gz: d07b21dadf29713c7077ca8dc711b95f834fd8928fd4ea91b68ca14b409e561be049dbfdfdf2bba56fd2e92f1424629e77aacad55f5ca4e9cd9f66a421da3b5c
|
data/COPYING
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
cmdparse - advanced command line parser supporting commands
|
2
|
-
Copyright (C) 2004-
|
2
|
+
Copyright (C) 2004-2020 Thomas Leitner <t_leitner@gmx.at>
|
3
3
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a
|
5
5
|
copy of this software and associated documentation files (the
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
**cmdparse** - an advanced command line parser using optparse which has support for commands
|
2
2
|
|
3
|
-
Copyright (C) 2004-
|
3
|
+
Copyright (C) 2004-2020 Thomas Leitner
|
4
4
|
|
5
5
|
## Description
|
6
6
|
|
@@ -11,7 +11,7 @@ to create programs that use such a command line interface.
|
|
11
11
|
This library, cmdparse, can be used to create such a command line interface. Internally it uses
|
12
12
|
optparse to parse options and it provides a nice API for specifying commands.
|
13
13
|
|
14
|
-
See <
|
14
|
+
See <https://cmdparse.gettalong.org> for detailed information, an extensive tutorial and the API
|
15
15
|
reference!
|
16
16
|
|
17
17
|
|
@@ -21,14 +21,14 @@ You can build the documentation by invoking
|
|
21
21
|
|
22
22
|
$ rake doc
|
23
23
|
|
24
|
-
This builds the whole documentation and needs webgen >=1.4.0 (
|
24
|
+
This builds the whole documentation and needs webgen >=1.4.0 (https://webgen.gettalong.org) for
|
25
25
|
building.
|
26
26
|
|
27
27
|
|
28
28
|
## Example Usage
|
29
29
|
|
30
30
|
There is an example of how to use cmdparse in the `example/net.rb` file. A detailed walkthrough of
|
31
|
-
what each part does can be found on <
|
31
|
+
what each part does can be found on <https://cmdparse.gettalong.org/tutorial.html>.
|
32
32
|
|
33
33
|
|
34
34
|
## License
|
@@ -58,5 +58,5 @@ If you don't want to use RubyGems, use these commands:
|
|
58
58
|
|
59
59
|
Author: Thomas Leitner
|
60
60
|
|
61
|
-
* Web: <
|
61
|
+
* Web: <https://cmdparse.gettalong.org>
|
62
62
|
* e-Mail: <mailto:t_leitner@gmx.at>
|
data/Rakefile
CHANGED
@@ -113,7 +113,7 @@ namespace :dev do
|
|
113
113
|
#### Author and project details
|
114
114
|
s.author = "Thomas Leitner"
|
115
115
|
s.email = "t_leitner@gmx.at"
|
116
|
-
s.homepage = "
|
116
|
+
s.homepage = "https://cmdparse.gettalong.org"
|
117
117
|
end
|
118
118
|
|
119
119
|
Gem::PackageTask.new(spec) do |pkg|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.5
|
data/doc/default.template
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
<!-- Sidebar -->
|
26
26
|
<div id="sidebar">
|
27
|
-
<h1 id="logo"><a href="{relocatable: /}">cmdparse</a><br /><span>v 3.0.
|
27
|
+
<h1 id="logo"><a href="{relocatable: /}">cmdparse</a><br /><span>v 3.0.5</span></h1>
|
28
28
|
|
29
29
|
<!-- Nav -->
|
30
30
|
<nav id="nav">
|
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
<!-- Copyright -->
|
46
46
|
<ul id="copyright">
|
47
|
-
<li itemscope="" itemtype="http://schema.org/Person">© 2004-
|
47
|
+
<li itemscope="" itemtype="http://schema.org/Person">© 2004-2020
|
48
48
|
<span itemprop="name">Thomas Leitner</span>
|
49
49
|
<meta itemprop="email" content="t_leitner@gmx.at" />
|
50
50
|
<meta itemprop="url" content="https://gettalong.org" />
|
data/doc/index.page
CHANGED
data/doc/news.page
CHANGED
data/lib/cmdparse.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
#--
|
3
3
|
# cmdparse: advanced command line parser supporting commands
|
4
|
-
# Copyright (C) 2004-
|
4
|
+
# Copyright (C) 2004-2020 Thomas Leitner
|
5
5
|
#
|
6
6
|
# This file is part of cmdparse which is licensed under the MIT.
|
7
7
|
#++
|
@@ -47,7 +47,7 @@ end
|
|
47
47
|
module CmdParse
|
48
48
|
|
49
49
|
# The version of this cmdparse implemention
|
50
|
-
VERSION = '3.0.
|
50
|
+
VERSION = '3.0.5'.freeze
|
51
51
|
|
52
52
|
|
53
53
|
# Base class for all cmdparse errors.
|
@@ -841,8 +841,8 @@ module CmdParse
|
|
841
841
|
# Adds a top level command.
|
842
842
|
#
|
843
843
|
# See Command#add_command for detailed invocation information.
|
844
|
-
def add_command(*args, &block)
|
845
|
-
@main_command.add_command(*args, &block)
|
844
|
+
def add_command(*args, **kws, &block)
|
845
|
+
@main_command.add_command(*args, **kws, &block)
|
846
846
|
end
|
847
847
|
|
848
848
|
# Parses the command line arguments.
|
data/webgen.config
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
|
3
|
-
website.config['website.base_url'] = '
|
3
|
+
website.config['website.base_url'] = 'https://cmdparse.gettalong.org/'
|
4
4
|
website.config['sources'] =[['/', :file_system, 'doc']]
|
5
5
|
website.config['destination'] = [:file_system, 'htmldoc']
|
6
6
|
website.config['website.tmpdir'] = 'webgen-tmp'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmdparse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Leitner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: webgen
|
@@ -53,7 +53,7 @@ files:
|
|
53
53
|
- lib/cmdparse.rb
|
54
54
|
- setup.rb
|
55
55
|
- webgen.config
|
56
|
-
homepage:
|
56
|
+
homepage: https://cmdparse.gettalong.org
|
57
57
|
licenses:
|
58
58
|
- MIT
|
59
59
|
metadata: {}
|
@@ -75,8 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
|
79
|
-
rubygems_version: 2.7.3
|
78
|
+
rubygems_version: 3.1.2
|
80
79
|
signing_key:
|
81
80
|
specification_version: 4
|
82
81
|
summary: Advanced command line parser supporting commands
|