Skip to content

Commit

Permalink
#2831 Reorder arguments to parser for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-alistairp committed Dec 19, 2024
1 parent 8736ae3 commit 526aeab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/psyclone/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,11 @@ def main(arguments):
# Common options
parser.add_argument('filename', help='input source code')
parser.add_argument(
'--version', '-v', action='version',
'-v', '--version', action='version',
version=f'PSyclone version: {__VERSION__}',
help='display version information')
parser.add_argument("--config", "-c", help="config file with "
"PSyclone specific options")
parser.add_argument('-c', '--config', help='config file with '
'PSyclone specific options')
parser.add_argument('-s', '--script', help='filename of a PSyclone'
' optimisation recipe')
parser.add_argument(
Expand All @@ -444,7 +444,7 @@ def main(arguments):
'output Fortran. Use \'output\' to apply line-length limit to output '
'Fortran only.')
parser.add_argument(
'--profile', '-p', action="append", choices=Profiler.SUPPORTED_OPTIONS,
'-p', '--profile', action="append", choices=Profiler.SUPPORTED_OPTIONS,
help="add profiling hooks for 'kernels', 'invokes' or 'routines'")
parser.add_argument(
'--backend', dest='backend',
Expand Down

0 comments on commit 526aeab

Please sign in to comment.