@@ -5,6 +5,30 @@ pub fn get_app_cli<'a, 'b>(version: &'b str) -> App<'a, 'b> {
55 . version ( & * version)
66 . author ( "Jessica Deen <jessica.deen@microsoft.com>" )
77 . about ( "Easy CLI to control Elgato Keylight" )
8+ . arg (
9+ Arg :: with_name ( "switch" )
10+ . index ( 1 )
11+ . required ( true )
12+ . short ( "s" )
13+ . long ( "switch" )
14+ . takes_value ( true )
15+ . value_name ( "ON/OFF" )
16+ . help ( "Switch value for light status: Accepted values are: on, off." )
17+ )
18+ . arg (
19+ Arg :: with_name ( "brightness" )
20+ . help ( "Brightness value for light: Accepted values are: low, medium, high." )
21+ . required ( true )
22+ . index ( 2 )
23+ . default_value ( "20" ) ,
24+ )
25+ . arg (
26+ Arg :: with_name ( "temperature" )
27+ . help ( "Temperature value for light: Accepted values are: warm, medium, cool." )
28+ . required ( true )
29+ . index ( 3 )
30+ . default_value ( "213" ) ,
31+ )
832 . arg (
933 Arg :: with_name ( "ELGATO_IP" )
1034 . long ( "elgato-ip-address" )
@@ -27,25 +51,4 @@ pub fn get_app_cli<'a, 'b>(version: &'b str) -> App<'a, 'b> {
2751 . env ( "NUMBER_OF_LIGHTS" )
2852 . takes_value ( true ) ,
2953 )
30- . arg (
31- Arg :: with_name ( "SWITCH" )
32- . help ( "Switch value for light status: Accepted values are: on, off." )
33- . required ( true )
34- . index ( 1 )
35- . default_value ( "off" ) ,
36- )
37- . arg (
38- Arg :: with_name ( "BRIGHTNESS" )
39- . help ( "Brightness value for light: Accepted values are: low, medium, high." )
40- . required ( true )
41- . index ( 2 )
42- . default_value ( "medium" ) ,
43- )
44- . arg (
45- Arg :: with_name ( "TEMPERATURE" )
46- . help ( "Temperature value for light: Accepted values are: warm, medium, cool." )
47- . required ( true )
48- . index ( 3 )
49- . default_value ( "medium" ) ,
50- )
5154}
0 commit comments