schism-dev / schism

Semi-implicit Cross-scale Hydroscience Integrated System Model (SCHISM)
http://ccrm.vims.edu/schismweb/
Apache License 2.0
87 stars 86 forks source link

:memo: Updates version flag (-v) handling #64

Closed jamal919 closed 2 years ago

jamal919 commented 2 years ago

Previous version flag handling (-v) failed when only -v is provided as argument. This PR fix it to following behaviour -

  1. pschism -v : Show version and exit
  2. pschism 3: run SCHISM with 3 scribes
  3. pschism -v 3: Show version and exit
  4. pschism: for OLDIO run as it, for SCRIBE IO, displays Must have at least 1 cmd argument: # of scribes to run, or -v for version. and exit.