Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.

Commit

Permalink
Removed the = sign in the help message to indicate they are not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
rgknox committed Jan 19, 2018
1 parent 187b727 commit fc2a774
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/FatesPFTIndexSwapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def usage():
print('')
print('=======================================================================')
print('')
print(' python FatesPFTIndexSwapper.py -h --pft-indices=<integer position> ')
print(' --fin=<netcdf-file-in> ')
print(' --fout=<netcdf-file-out>')
print(' python FatesPFTIndexSwapper.py -h --pft-indices <integer position> ')
print(' --fin <netcdf-file-in> ')
print(' --fout <netcdf-file-out>')
print('')
print('')
print(' -h --help ')
Expand Down Expand Up @@ -81,11 +81,11 @@ def interp_args(argv):
donot_pft_indices_str = ''
try:
opts, args = getopt.getopt(argv, 'h',["fin=","fout=","pft-indices="])

except getopt.GetoptError as err:
print('Argument error, see usage')
usage()
sys.exit(2)

for o, a in opts:
if o in ("-h", "--help"):
usage()
Expand Down

0 comments on commit fc2a774

Please sign in to comment.