Set query arg in economy/eval as required (#4317)

* Set query arg as required

* Edit economy/eval documentation

---------

Co-authored-by: elyanah <elyanah.aco02@gmail.com>
This commit is contained in:
Elyanah Aco
2023-02-22 21:30:50 +08:00
committed by GitHub
parent 1c30ad2eec
commit 2079649e44
2 changed files with 2 additions and 1 deletions

View File

@@ -1630,6 +1630,7 @@ class EconomyController(BaseController):
type=str,
nargs="+",
dest="query",
required="-h" not in other_args,
help="Query to evaluate on loaded datasets",
)
if other_args and "-" not in other_args[0][0]:

View File

@@ -19,6 +19,6 @@ eval [-q QUERY [QUERY ...]]
| Name | Description | Default | Optional | Choices |
| ---- | ----------- | ------- | -------- | ------- |
| query | Query to evaluate on loaded datasets | None | True | None |
| query | Query to evaluate on loaded datasets | None | False | None |
---