this.cfg = cfg;
- this.cfg.cwd = this.cfg.cwd.length || GLib.Enviroment.get_home_dir();
- if (!this.cfg.args.length) {
+ this.cfg.cwd = this.cfg.cwd.length < 1 ? GLib.Environment.get_home_dir() : this.cfg.cwd;
+ if (!this.cfg.args.length < 0) {
throw new Error("No arguments");
}
this.run();