[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 0420521 04/62: Completion: bug fix in catching
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 0420521 04/62: Completion: bug fix in catching the options |
Date: |
Thu, 13 May 2021 22:20:45 -0400 (EDT) |
branch: master
commit 0420521b7f478a8aa2d27916ff45e8d953634eb6
Author: Pedram Ashofteh Ardakani <pedramardakani@pm.me>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Completion: bug fix in catching the options
Until now, the completion would catch only the options introduced in the
`--help` command of the `astcosmiccal` program that started with [a-z]
characters. With this commit, options that start with the uppercase
letters will be caught too. Furthermore, options that included numbers,
such as `--H0` are counted in too.
---
bin/cosmiccal/astcosmiccal-completion.bash | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/cosmiccal/astcosmiccal-completion.bash
b/bin/cosmiccal/astcosmiccal-completion.bash
index 50c1aed..e22723a 100644
--- a/bin/cosmiccal/astcosmiccal-completion.bash
+++ b/bin/cosmiccal/astcosmiccal-completion.bash
@@ -23,7 +23,7 @@ _astcosmiccal_completions(){
else
# Show all options in CosmicCalculator:
COMPREPLY=($(compgen -W "$(astcosmiccal --help | \
- awk 'match($0, /--[a-z]+/) {print substr($0,
RSTART, RLENGTH)}') " \
+ awk 'match($0, /--([A-Z]|[a-z]|[0-9])*/) {print
substr($0, RSTART, RLENGTH)}') " \
-- "$word"));
fi;
}
- [gnuastro-commits] master a829b24 05/62: Completion: Suggest FITS files in relevant options, (continued)
- [gnuastro-commits] master a829b24 05/62: Completion: Suggest FITS files in relevant options, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 3da00c3 07/62: Table: Prepare initial completion script, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 477d23d 06/62: Rename completion files, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 39efeea 08/62: Table: First working completion, general commands, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 32cbe32 13/62: Table: Completion, better formatting, add function, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master d631f5b 15/62: Table: Completion, remove global variables, etc, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master f4cf33d 17/62: Tabel: Completion, examine for fits availability, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master e1c1a4b 18/62: Table: Completion, fix 'wcshdu', Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 6fe9cb6 20/62: Table: Completion, refactor awk regex fits name, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master c593823 23/62: Table: Completion, fix hdu and fits suggestions, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 0420521 04/62: Completion: bug fix in catching the options,
Mohammad Akhlaghi <=
- [gnuastro-commits] master 3d8e96d 10/62: Table: Fix completion issue, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master f2ccd6e 12/62: Table: Completion, fix reading fits column, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master d0e1362 14/62: Table: Completion, better function name, copyright, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 7ad725a 21/62: Table: Completion, fix hdu and fits suggestions, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master b391ee8 22/62: Table: Completion, bash4+ long option no space, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 97d9a1e 09/62: Table: Completion suggests matching words, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 9ea367b 16/62: Table: Completion, handle '=', do not append space, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 7c95cec 24/62: Table: Completion, better POSIX portability, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 19ebe93 26/62: Table: Completion, improve _compgen, put quotes, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 7b584a4 31/62: Table: Completion, update shebang, fix formatting, Mohammad Akhlaghi, 2021/05/13