Skip to content

Commit

Permalink
Fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
Kidev committed Jan 18, 2025
1 parent f1d436c commit 26dd68e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions aqt/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,10 +864,9 @@ def _make_list_qt_commercial_parser(self, subparsers: argparse._SubParsersAction
"$ aqt list-qt-commercial gcc_64 6.8.1 # search for multiple terms at once\n",
)
list_parser.add_argument(
"-s",
"--search",
"search_terms",
nargs="*",
help="Optional search terms to pass to the installer search command. If not provided, lists all packages",
default="*",
)
list_parser.set_defaults(func=self.run_list_qt_commercial)

Expand Down Expand Up @@ -913,7 +912,7 @@ def run_list_qt_commercial(self, args) -> None:
"--accept-obligations",
"--confirm-command",
"search",
args.search,
"" if not args.search_terms else " ".join(args.search_terms),
]

# Run search and display output
Expand Down

0 comments on commit 26dd68e

Please sign in to comment.