File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import sys
2626
2727from pyard .constants import VALID_REDUCTION_TYPES
2828import pyard .misc
29- from pyard .exceptions import InvalidAlleleError , InvalidTypingError
29+ from pyard .exceptions import InvalidAlleleError , InvalidTypingError , InvalidMACError
3030from pyard .misc import get_data_dir , get_imgt_version
3131
3232if __name__ == "__main__" :
@@ -70,6 +70,7 @@ if __name__ == "__main__":
7070 help = "Validate the provided GL String" ,
7171 )
7272 parser .add_argument ("--cwd" , dest = "cwd" , help = "Perform CWD redux" )
73+ parser .add_argument ("--lookup-mac" , dest = "lookup_mac" , help = "Lookup Mac " )
7374
7475 args = parser .parse_args ()
7576
@@ -89,6 +90,15 @@ if __name__ == "__main__":
8990 print (f"{ mapping [0 ]} = { '/' .join (mapping [1 ])} " )
9091 sys .exit (0 )
9192
93+ # Handle --lookup-mac option
94+ if args .lookup_mac :
95+ try :
96+ mac = ard .lookup_mac (args .lookup_mac )
97+ print (mac )
98+ except InvalidMACError as e :
99+ print (e .message , file = sys .stderr )
100+ sys .exit (0 )
101+
92102 try :
93103 if args .validate :
94104 ard .validate (args .cwd )
You can’t perform that action at this time.
0 commit comments