Skip to content

Commit b88f6ae

Browse files
authored
Merge pull request #198 from matejak/release
Last fixes before release
2 parents 7a694cf + 2fad78e commit b88f6ae

File tree

6 files changed

+848
-3
lines changed

6 files changed

+848
-3
lines changed

.readthedocs.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
version: 2
5+
6+
7+
build:
8+
os: ubuntu-24.04
9+
tools:
10+
python: "3.12"
11+
# You can also specify other tool versions:
12+
13+
14+
# Build documentation in the "docs/" directory with Sphinx
15+
sphinx:
16+
configuration: doc/conf.py

ChangeLog

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
2.10.1 (TBA)
1+
2.11.0 (2024-05-??)
22
-------------------
33

4+
Buxfixes:
5+
6+
* `#!/bin/bash` is no longer the shebang. The more portable `#!/usr/bin/env bash` is used instead (#185).
7+
* Indentation is consistent in validation functions (#143)
8+
* Fixed bug preventing short options to have capital letters (#199)
9+
10+
New features:
11+
12+
* The new Argbash macro `ARGBASH_INDICATE_SUPPLIED` allows you to get information on whether an argument has been explicitly passed on the commandline. Big thanks to Kevin Stravers (@kstrafe) for his heroic effort!
13+
* A new `excised` mode that doesn't contain generated code has been introduced (#186)
414

515
2.10.0 (2020-09-22)
616
-------------------

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
* But they don't since arguments support is a daunting task, because ...
1111
* `getopt` is discouraged, `getopts` doesn't support long options, there is no widely-accepted `Bash` module to do the task and some solutions don't work on all platforms (Linux, OSX, MSW)...
1212

13-
Give `Argbash` a try and stop being terrorized by those pesky arguments! With Argbash, you will get:
13+
Having Argbash, you can generate interface for your first script in a matter of seconds. See a [termtosvg](https://github.com/nbedos/termtosvg) recording of how `head.sh`, a script with a subset of the `head` command's interface, is created by editing a template provided by `argbash-init`.
14+
15+
![Example](./resources/screencast.svg)
16+
17+
Definitely do give `Argbash` a try, and stop being terrorized by those pesky arguments! With Argbash, you will get:
1418

1519
* Fast, minimalistic declaration of arguments your script expects (see below for supported argument types).
1620
* Scripts generated from definitions once that can be used on all platforms that have `bash`.

doc/guide.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,10 @@ Plus, there are convenience macros:
626626

627627
* The user forgets to supply value to an optional argument, so the next argument is mistaken for it.
628628
For example, when we leave ``time`` from ``ls --sort time --long /home/me/*``, we get a syntactically valid command-line ``ls --sort --long /home/me/*``, where ``--long`` is identified as value of the argument ``--sort`` instead an argument on its own.
629+
As ``--long`` is a supported argument of ``ls``, both ``no-any-options`` or ``no-local-options`` would catch this error.
629630
* The user intends to pass an optional argument on the command-line (e.g. ``--sort``), but makes a typo, (e.g. ``--srot``), or the script actually doesn't support that argument.
630631
As an unwanted consequence, it is interpreted as a positional argument.
632+
As ``--srot`` is not a supported argument of ``ls``, only ``no-any-options`` would catch this error.
631633

632634
* Make Argbash-powered scripts getopts-compatible:
633635

0 commit comments

Comments
 (0)