Merge pull request #14 from leonj1/feat_support_version
FEAT support version arg
This commit is contained in:
commit
408eff73a9
|
|
@ -10,6 +10,7 @@ from ra_aid.tools.memory import _global_memory
|
||||||
from ra_aid.tools.human import ask_human
|
from ra_aid.tools.human import ask_human
|
||||||
from ra_aid import print_stage_header, print_error
|
from ra_aid import print_stage_header, print_error
|
||||||
from ra_aid.tools.human import ask_human
|
from ra_aid.tools.human import ask_human
|
||||||
|
from ra_aid.__version__ import __version__
|
||||||
from ra_aid.agent_utils import (
|
from ra_aid.agent_utils import (
|
||||||
AgentInterrupt,
|
AgentInterrupt,
|
||||||
run_agent_with_retry,
|
run_agent_with_retry,
|
||||||
|
|
@ -43,6 +44,12 @@ Examples:
|
||||||
type=str,
|
type=str,
|
||||||
help='The task or query to be executed by the agent'
|
help='The task or query to be executed by the agent'
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
'--version',
|
||||||
|
action='version',
|
||||||
|
version=f'%(prog)s {__version__}',
|
||||||
|
help='Show program version number and exit'
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--research-only',
|
'--research-only',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue