@@ -1376,7 +1376,7 @@ def arg_parser(ident: str = None, port: int = 8020):
1376
1376
type = str ,
1377
1377
default = 20 ,
1378
1378
metavar = ("<api>" ),
1379
- help = "API level (10 or 20 (default) )" ,
1379
+ help = "API level (20 )" ,
1380
1380
)
1381
1381
parser .add_argument ("--timing" , action = "store_true" , help = "Enable timing information" )
1382
1382
parser .add_argument (
@@ -1546,11 +1546,10 @@ async def create_agent_with_args(args, ident: str = None, extra_args: list = Non
1546
1546
1547
1547
if "aip" in args :
1548
1548
aip = int (args .aip )
1549
- if aip not in [
1550
- 10 ,
1551
- 20 ,
1552
- ]:
1553
- raise Exception ("Invalid value for aip, should be 10 or 20" )
1549
+ if aip == 10 : # helpful message to flag legacy usage
1550
+ raise Exception ("Invalid value for aip, 10 is no longer supported. Use 20 instead." )
1551
+ if aip != 20 :
1552
+ raise Exception ("Invalid value for aip, should be 20" )
1554
1553
else :
1555
1554
aip = 20
1556
1555
@@ -1582,16 +1581,10 @@ async def create_agent_with_args(args, ident: str = None, extra_args: list = Non
1582
1581
)
1583
1582
1584
1583
reuse_connections = "reuse_connections" in args and args .reuse_connections
1585
- # if reuse_connections and aip != 20:
1586
- # raise Exception("Can only specify `--reuse-connections` with AIP 2.0")
1587
1584
multi_use_invitations = "multi_use_invitations" in args and args .multi_use_invitations
1588
- if multi_use_invitations and aip != 20 :
1589
- raise Exception ("Can only specify `--multi-use-invitations` with AIP 2.0" )
1590
1585
public_did_connections = (
1591
1586
"public_did_connections" in args and args .public_did_connections
1592
1587
)
1593
- if public_did_connections and aip != 20 :
1594
- raise Exception ("Can only specify `--public-did-connections` with AIP 2.0" )
1595
1588
1596
1589
anoncreds_legacy_revocation = None
1597
1590
if "anoncreds_legacy_revocation" in args and args .anoncreds_legacy_revocation :
0 commit comments