From 39af6dbdc87390fa44600482fe6ed21d220e4a93 Mon Sep 17 00:00:00 2001
From: merakor <cem@ckyln.com>
Date: Mon, 5 Oct 2020 11:05:46 +0000
Subject: cpt: add global options to the library.

FossilOrigin-Name: 31d397b6064679068ed32c337f8c74e7ab24c9b7b9fa44f55a8cc0f52ca3bcee
---
 src/cpt-search | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'src/cpt-search')

diff --git a/src/cpt-search b/src/cpt-search
index 5fb851d..d52f5c9 100755
--- a/src/cpt-search
+++ b/src/cpt-search
@@ -7,8 +7,7 @@ parser_definition() {
     setup REST -- "usage: ${0##*/} [pkg...]"
     msg -- '' 'Options:'
     flag all      -s --single init:=1 on:'' -- "Only show the first instance of a package"
-    disp :usage   -h --help                     -- "Show this help message"
-    disp :version -v --version                  -- "Print version information"
+    global_flags
 }
 
 eval "$(getoptions      parser_definition parse "$0")"
-- 
cgit v1.2.3