Skip to content

Commit

Permalink
print help in deployctl types with -h flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Mar 23, 2021
1 parent 5c75b04 commit fc37084
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/subcommands/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export default async function (rawArgs: Record<string, any>): Promise<void> {
const args: Args = {
help: !!rawArgs.help,
};
if (args.help) {
console.log(help);
Deno.exit(1);
}
if (rawArgs._.length > 0) {
console.log(help);
error("Too many positional arguments given.");
Expand Down

0 comments on commit fc37084

Please sign in to comment.