|
|
@@ -16,7 +16,7 @@ class Blih {
|
|
16
|
16
|
this._user = options.user || this.get_user();
|
|
17
|
17
|
this._token = options.token || this.token_calc();
|
|
18
|
18
|
this._verbose = options.verbose || false;
|
|
19
|
|
- this._userAgent = options.useragent || 'blih-' + program.version;
|
|
|
19
|
+ this._userAgent = options.useragent || 'blih-' + program.version();
|
|
20
|
20
|
}
|
|
21
|
21
|
|
|
22
|
22
|
sign_data(data) {
|
|
|
@@ -244,5 +244,5 @@ program.command('whoami')
|
|
244
|
244
|
|
|
245
|
245
|
program.parse(process.argv);
|
|
246
|
246
|
|
|
247
|
|
-if (program.args.length === 0)
|
|
248
|
|
- program.help();
|
|
|
247
|
+if (program.args.length === 0 || !(program.args[1] instanceof program.Command))
|
|
|
248
|
+ program.help();
|