gnuastro-commits
[Top][All Lists]
Advanced

[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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]