Index: trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F90
===================================================================
--- trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F90	(revision 3568)
+++ trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F90	(revision 3574)
@@ -21,4 +21,5 @@
 use mod_const_mpi,       only: init_const_mpi
 use parallel_lmdz,       only: init_parallel
+use version_info_mod,    only: print_version_info
 
 implicit none
@@ -77,4 +78,5 @@
 real, dimension(:,:,:), allocatable :: q             ! tracer mixing ratio (e.g. kg/kg)
 real, dimension(1)                  :: wstar = 0.    ! Thermals vertical velocity
+character(100)                      :: arg           ! To read command-line arguments
 
 ! Physical and dynamical tendencies (e.g. m.s-2, K/s, Pa/s)
@@ -100,4 +102,15 @@
 ! INITIALISATION
 !=======================================================================
+if (command_argument_count() > 0) then ! Get the number of command-line arguments
+    call get_command_argument(1,arg) ! Read the argument given to the program
+    select case (trim(adjustl(arg)))
+        case('version')
+            call print_version_info()
+            stop
+        case default
+            error stop 'The argument given to the program is unknown!'
+    end select
+endif
+
 #ifdef CPP_XIOS
     call init_const_mpi
