Skip to content

Commit 0d218ce

Browse files
committed
named parameters on reset command
Signed-off-by: Giovanni Martins <[email protected]>
1 parent ee5ccbc commit 0d218ce

File tree

1 file changed

+40
-32
lines changed

1 file changed

+40
-32
lines changed

lib/Command/Developer/Reset.php

Lines changed: 40 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -50,45 +50,53 @@ protected function configure(): void {
5050
$this
5151
->setName('libresign:developer:reset')
5252
->setDescription('Clean all LibreSign data')
53-
->addOption('all',
54-
null,
55-
InputOption::VALUE_NONE,
56-
'Reset all'
53+
->addOption(
54+
name: 'all',
55+
shortcut: null,
56+
mode: InputOption::VALUE_NONE,
57+
description: 'Reset all'
5758
)
58-
->addOption('notifications',
59-
null,
60-
InputOption::VALUE_OPTIONAL,
61-
'Reset notifications'
59+
->addOption(
60+
name: 'notifications',
61+
shortcut: null,
62+
mode: InputOption::VALUE_OPTIONAL,
63+
description: 'Reset notifications'
6264
)
63-
->addOption('identify',
64-
null,
65-
InputOption::VALUE_NONE,
66-
'Reset identify'
65+
->addOption(
66+
name: 'identify',
67+
shortcut: null,
68+
mode: InputOption::VALUE_NONE,
69+
description: 'Reset identify'
6770
)
68-
->addOption('signrequest',
69-
null,
70-
InputOption::VALUE_NONE,
71-
'Reset sign request'
71+
->addOption(
72+
name: 'signrequest',
73+
shortcut: null,
74+
mode: InputOption::VALUE_NONE,
75+
description: 'Reset sign request'
7276
)
73-
->addOption('file',
74-
null,
75-
InputOption::VALUE_NONE,
76-
'Reset file'
77+
->addOption(
78+
name: 'file',
79+
shortcut: null,
80+
mode: InputOption::VALUE_NONE,
81+
description: 'Reset file'
7782
)
78-
->addOption('fileelement',
79-
null,
80-
InputOption::VALUE_NONE,
81-
'Reset file element'
83+
->addOption(
84+
name: 'fileelement',
85+
shortcut: null,
86+
mode: InputOption::VALUE_NONE,
87+
description: 'Reset file element'
8288
)
83-
->addOption('userelement',
84-
null,
85-
InputOption::VALUE_NONE,
86-
'Reset user element'
89+
->addOption(
90+
name: 'userelement',
91+
shortcut: null,
92+
mode: InputOption::VALUE_NONE,
93+
description: 'Reset user element'
8794
)
88-
->addOption('config',
89-
null,
90-
InputOption::VALUE_NONE,
91-
'Reset config'
95+
->addOption(
96+
name: 'config',
97+
shortcut: null,
98+
mode: InputOption::VALUE_NONE,
99+
description: 'Reset config'
92100
)
93101
;
94102
}

0 commit comments

Comments
 (0)