Skip to content

Commit

Permalink
Merge pull request #20 from moka-guys/hotfix/fix_parser
Browse files Browse the repository at this point in the history
Fix parser to split comma separated args (#20)
  • Loading branch information
rebeccahaines1 committed Jun 27, 2024
2 parents 2062c5a + 5c5ae25 commit 98a6d7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ options:
-T TSO_PANELS, --tso_panels TSO_PANELS
Comma separated string of tso panels
-D DEV_PANNOS, --dev_pannos DEV_PANNOS
Development pan numbers
Comma separated development pan numbers
-L LOGDIR, --logdir LOGDIR
Directory to save the output logfile to
-NSH NO_STREAM_HANDLER, --no_stream_handler NO_STRAM_HANDLER
Expand Down
8 changes: 4 additions & 4 deletions samplesheet_validator/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,28 @@ def get_arguments():
parser.add_argument(
"-SI",
"--sequencer_ids",
type=str,
type=lambda s: [i for i in s.split(',')],
required=True,
help="Comma separated string of allowed sequencer IDS",
)
parser.add_argument(
"-P",
"--panels",
type=str,
type=lambda s: [i for i in s.split(',')],
required=True,
help="Comma separated string of allowed panel numbers",
)
parser.add_argument(
"-T",
"--tso_panels",
type=str,
type=lambda s: [i for i in s.split(',')],
required=True,
help="Comma separated string of tso panels",
)
parser.add_argument(
"-D",
"--dev_pannos",
type=str,
type=lambda s: [i for i in s.split(',')],
required=True,
help="Comma separated string of development pan numbers",
)
Expand Down

0 comments on commit 98a6d7c

Please sign in to comment.