File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,13 @@ def main(argv: List[str] = None):
66
66
epilog = "use 'fuddly <action>' help more information on their arguments" ,
67
67
exit_on_error = False
68
68
)
69
+ parsers ["main" ].add_argument (
70
+ "-v" ,
71
+ "--version" ,
72
+ action = "store_true" ,
73
+ help = "print the vesion and exit" ,
74
+ )
75
+
69
76
subparsers = arg_parser .add_subparsers (help = "" , dest = "action" , metavar = "action" )
70
77
71
78
with subparsers .add_parser ("shell" , help = "launch the fuddly interactive shell" ) as p :
@@ -190,6 +197,11 @@ def main(argv: List[str] = None):
190
197
arg_parser .print_help ()
191
198
return 0
192
199
200
+ if args .version :
201
+ from fuddly .framework .global_resources import fuddly_version
202
+ print (fuddly_version )
203
+ return 0
204
+
193
205
if args .action is None :
194
206
arg_parser .print_help ()
195
207
return 0
You can’t perform that action at this time.
0 commit comments