return options on parse

This commit is contained in:
Timo Hocker 2020-05-07 13:16:41 +02:00
parent a09816dd6e
commit 0c5c40e4a4

View File

@ -78,10 +78,11 @@ export class InteractiveOptions extends Persistent {
} }
} }
public async parse (): Promise<void> { public async parse (): Promise<Record<string, unknown>> {
await this.get_env_options (); await this.get_env_options ();
await this.get_args_options (); await this.get_args_options ();
await this.get_interactive_options (); await this.get_interactive_options ();
return this.to_object ();
} }
private async assign_arg (opt: OptionProcess, value: unknown): Promise<void> { private async assign_arg (opt: OptionProcess, value: unknown): Promise<void> {