Correctly handle an unknown target for ls.
This commit is contained in:
parent
ae91d13132
commit
26f4cd96d4
1 changed files with 3 additions and 1 deletions
|
@ -17,7 +17,9 @@ class List(dcc.config.Base):
|
||||||
case "demos":
|
case "demos":
|
||||||
self.list(x.name for x in os.scandir(self.demos.joinpath(parsed_args.wad)) if x.name.endswith(".lmp"))
|
self.list(x.name for x in os.scandir(self.demos.joinpath(parsed_args.wad)) if x.name.endswith(".lmp"))
|
||||||
case "videos":
|
case "videos":
|
||||||
self.list(x.name for x in os.scandir(self.output.joinpath(parsed_args.wad)) if x.name.endswith(".mp4"))
|
self.list(x.name for x in os.scandir(self.fabricate.joinpath(parsed_args.wad)) if x.name.endswith(".mp4"))
|
||||||
|
case _:
|
||||||
|
raise Exception(f"unknown target {parsed_args.target}")
|
||||||
|
|
||||||
def list(self, gen):
|
def list(self, gen):
|
||||||
# TODO: fancy text?
|
# TODO: fancy text?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue