Skip to content

Commit

Permalink
Merge pull request #96 from srz-zumix/feature/fix_status_command
Browse files Browse the repository at this point in the history
fix status command
  • Loading branch information
srz-zumix authored Jan 31, 2022
2 parents afec72a + 3355a0a commit 79eb183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wandbox/__status__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def execute(self):
def execute_with_args(self, args=None):
opts = self.parse_command_line(args)

language, compiler, *_ = re.split(r'[\s:,]', opts.language, 2) + [None]
language, compiler, *_ = [x.strip() for x in re.split(r'[:,]', opts.language, 2)] + [None]
clis = get_all_cli()
cli = next((cli for cli in clis if cli.language == language), None)

Expand Down

0 comments on commit 79eb183

Please sign in to comment.