@@ -33,20 +33,18 @@ def main():
3333 parser_fortran = subparsers .add_parser ('fortran' , help = 'subcommand for generating Fortran code' )
3434 parser_fortran .add_argument ('--generate-ts-suffix' , action = "store_true" ,
3535 help = 'generate ts suffixes for appropriate routines' )
36+ parser_fortran .add_argument ('--fort-std' , choices = ('f90' , 'f08' ),
37+ help = 'fortran standard to use for fortran module and code generation' )
3638 # Handler for generating actual code
3739 subparsers_fortran = parser_fortran .add_subparsers ()
3840 parser_code = subparsers_fortran .add_parser ('code' , help = 'generate binding code' )
3941 parser_code .set_defaults (handler = lambda args , out : fortran .generate_code (args , out ))
40- parser_code .add_argument ('--lang' , choices = ('fortran' , 'c' , 'f90' ),
42+ parser_code .add_argument ('--lang' , choices = ('fortran' , 'c' ),
4143 help = 'language to generate (only for code subparser)' )
42- parser_code .add_argument ('--fort-std' , choices = ('f90' , 'f08' ),
43- help = 'fortran standard to use for fortran module generation' )
4444 # Handler for generating the Fortran interface files
4545 parser_interface = subparsers_fortran .add_parser ('interface' ,
4646 help = 'generate Fortran interface specifications' )
4747 parser_interface .set_defaults (handler = lambda args , out : fortran .generate_interface (args , out ))
48- parser_interface .add_argument ('--fort-std' , choices = ('f90' , 'f08' ),
49- help = 'fortran standard to use for fortran module generation' )
5048 # The prototype files argument must come last and be specified for both subparsers
5149 for f_subparser in [parser_code , parser_interface ]:
5250 f_subparser .add_argument ('--prototype-files' , nargs = '+' , help = 'prototype files to generate code for' )
0 commit comments