diff options
Diffstat (limited to 'gils/cat.rv')
| -rw-r--r-- | gils/cat.rv | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gils/cat.rv b/gils/cat.rv index 05ab418..0666304 100644 --- a/gils/cat.rv +++ b/gils/cat.rv @@ -2,10 +2,8 @@ const context = env.ctx const parsed = arg_name(context.rest, 0) - -if parsed.name:len() == 0 do - puts("usage: cat <path>\n") -end else do +if parsed.name:len() == 0 do fail("usage: cat <path>\n") end +else do const path = expand_path(parsed.name) if vfs_owns(path) do vfs_cat(path) end else do fs:cat(path) end |
