As the tool is currently, you have to specify the physical parameters, in order, as command-line arguments. This will not scale if the utility is expanded to encompass curves in the path of the train, acceleration of various types, additional access points etc.
A configuration file should have a key-value organization defined and should be read instead of expecting command-line arguments. (Alternatively, command-line arguments could be kept as an optional way to enter these specifications.)
As the tool is currently, you have to specify the physical parameters, in order, as command-line arguments. This will not scale if the utility is expanded to encompass curves in the path of the train, acceleration of various types, additional access points etc.
A configuration file should have a key-value organization defined and should be read instead of expecting command-line arguments. (Alternatively, command-line arguments could be kept as an optional way to enter these specifications.)