Login
Check-in [d3ad4a5021]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a bug where setting a default value for an integer argument would
also set it as being called.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk | v0.4.2
Files: files | file ages | folders
SHA3-256: d3ad4a5021e5b8ef6018d347dfee170a0de12730dea0bf6066bfc091ff72ecbc
User & Date: alexa 2021-05-06 06:13:45.799
Context
2021-05-26
09:43
Fix typo check-in: d6878bd5f2 user: alexa tags: trunk
2021-05-06
06:13
Fix a bug where setting a default value for an integer argument would
also set it as being called.
check-in: d3ad4a5021 user: alexa tags: trunk, v0.4.2
2021-05-02
08:14
Add basic concurrency module, which currently has a simple naive
TexturePool implementation. Bump revision since the API was only
added to, not changed.
check-in: 2065788f01 user: alexa tags: trunk, v0.4.1
Changes
Side-by-Side Diff Ignore Whitespace Patch
Changes to shard.yml.
1
2

3
4
5
6
7
1

2
3
4
5
6
7

-
+





name: libremiliacr
version: 0.4.1
version: 0.4.2
license: GPLv3
crystal: 1.0.0

authors:
  - Remilia Scarlet <remilia@posteo.jp>
Changes to src/libremiliacr.cr.
12
13
14
15
16
17
18
19

20
12
13
14
15
16
17
18

19
20







-
+

#### GNU General Public License for more details.
####
#### You should have received a copy of the GNU General Public License
#### along with this program.If not, see<http:####www.gnu.org/licenses/.>

module LibRemiliacr
  # The version of the library.
  VERSION = "0.4.1"
  VERSION = "0.4.2"
end
Changes to src/remiargparser.cr.
628
629
630
631
632
633
634
635

636
637
638
639
640
641
642
628
629
630
631
632
633
634

635
636
637
638
639
640
641
642







-
+







      newArg = IntArgument.new(longName, shortName, group, help)
      newArg.value = defaultVal
      addArg(newArg)
      newArg
    end

    # :ditto:
    def addInt(longName : String, shortName = nil, &block)
    def addInt(longName : String, shortName = nil, defaultVal = 0i64, &block)
      yield addInt(longName, shortName)
    end

    # Adds a new `MultiIntArgument`.
    def addMultiInt(longName : String, shortName = nil, group = "", help = "", defaultVal = [] of Int64)
      newArg = MultiIntArgument.new(longName, shortName, group, help)
      newArg.values = defaultVal