Skip to content

Commit 05382b1

Browse files
authored
Merge pull request #2183 from NativeScript/raikov/fix-2160
Fixed: `tns devices <platform>` throws an exception
2 parents e52077f + 52dc4f5 commit 05382b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/commands/devices.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
export class DevicesCommand implements ICommand {
22

3-
public allowedParameters: ICommandParameter[] = [];
3+
constructor(private $stringParameter: ICommandParameter) {}
4+
5+
public allowedParameters: ICommandParameter[] = [this.$stringParameter];
46

57
public execute(args: string[]): IFuture<void> {
68
return $injector.resolveCommand("device").execute(args);

0 commit comments

Comments
 (0)