[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 4412710 29/62: Table: Completions, add missing
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 4412710 29/62: Table: Completions, add missing options from help |
Date: |
Thu, 13 May 2021 22:20:49 -0400 (EDT) |
branch: master
commit 4412710aa43ce70003e9199f0c2343040bba7ae5
Author: Pedram Ashofteh Ardakani <pedramardakani@pm.me>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Table: Completions, add missing options from help
Until now, all options in Gnuastro manual 5.4.2 Invoking Table were
taken into account. With this commit, the few other long options
sitting in the 'asttable --help' are added.
---
bin/table/completion.sh | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/bin/table/completion.sh b/bin/table/completion.sh
index 6081615..af0d5e0 100644
--- a/bin/table/completion.sh
+++ b/bin/table/completion.sh
@@ -236,7 +236,7 @@ _gnuastro_asttable_completions(){
;;
-c|--column|-r|--range|-s|--sort|-C|--catcolumns| \
-m|--colmetadata|--inpolygon|--outpolygon| \
- -e|--equal|-n|--notequal|-b|--noblank)
+ -e|--equal|-n|--notequal|-b|--noblank|--searchin)
# The function below returns the columns inside the last fits
# file specified in the commandline. If no fits files were
# detected, there will be no response from autocompletion. This
@@ -247,9 +247,14 @@ _gnuastro_asttable_completions(){
# Description is same as the '--column' option.
_gnuastro_autocomplete_list_fits_hdu "$fits_name"
;;
- -o|--output|--polygon|-H|--head|-t|--tail)
+ -o|--output|--polygon|-H|--head|-t|--tail| \
+ --onlyversion|-N|--numthreads|--minmapsize)
# Do not suggest anything.
;;
+ --config)
+ # Suggest config files
+ COMPREPLY=($(compgen -f -X "!*.[cC][oO][nN][fF]" -- "$word"))
+ ;;
*) _gnuastro_autocomplete_list_options $PROG_ADDRESS ;;
esac
- [gnuastro-commits] master 88806f2 38/62: bin/table/completion.bash: improvements to find good table name, (continued)
- [gnuastro-commits] master 88806f2 38/62: bin/table/completion.bash: improvements to find good table name, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 1bf469f 40/62: /bin/table/completion.bash: consider short opt '-i', Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master e340452 42/62: Auto-completion: Minor polishing of the warning message, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master e444941 45/62: Auto-completion: Call astfits/asttable consistently, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 04ee1fe 46/62: Auto-completion: Suggest plaintext tables too, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 3754f1b 47/62: Auto-completion: Human readable arguments, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master ea08fdb 49/62: Auto-completion: return value from last table, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master ece1614 55/62: Auto complete: separated generic functions from Table's recipe, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master ef351da 56/62: TAB completion: now working for Arithmetic, better infrastructure, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master d2bf2c2 60/62: TAB completion: updated documentation and polished the code, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master 4412710 29/62: Table: Completions, add missing options from help,
Mohammad Akhlaghi <=
- [gnuastro-commits] master 82e9692 33/62: Book: Update the auto-complete section, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master abe3ca6 43/62: Auto-completion: Smart list fits files, fix var, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master a66e8bb 57/62: TAB completion: BuildProgram support added, Mohammad Akhlaghi, 2021/05/13
- [gnuastro-commits] master d7bf627 59/62: TAB completion: support added for CosmicCalculator and Crop, Mohammad Akhlaghi, 2021/05/13