@@ -69,10 +69,14 @@ def setup_time_command(cmd_parsers: _SubParsersAction):
6969
7070 time_convert = add_sub_cmd (time_subcmds , "convert" , help = "Convert a time report from one format into another." )
7171 time_convert .add_argument (
72- "--input" , default = sys .stdin , help = "The path to the source data for conversion. Defaults to stdin."
72+ "--input" ,
73+ default = os .environ .get ("TOGGL_DATA" , sys .stdin ),
74+ help = "The path to the source data for conversion. Defaults to $TOGGL_DATA or stdin." ,
7375 )
7476 time_convert .add_argument (
75- "--output" , default = sys .stdout , help = "The path to the file where converted data should be written. Defaults to stdout."
77+ "--output" ,
78+ default = os .environ .get ("HARVEST_DATA" , sys .stdout ),
79+ help = "The path to the file where converted data should be written. Defaults to $HARVEST_DATA or stdout." ,
7680 )
7781 time_convert .add_argument ("--client" , default = None , help = "The name of the client to use in converted data." )
7882
@@ -92,7 +96,9 @@ def setup_time_command(cmd_parsers: _SubParsersAction):
9296 help = "The end date of the reporting period. Defaults to the end of the prior month." ,
9397 )
9498 time_download .add_argument (
95- "--output" , default = sys .stdout , help = "The path to the file where converted data should be written. Defaults to stdout."
99+ "--output" ,
100+ default = os .environ .get ("TOGGL_DATA" , sys .stdout ),
101+ help = "The path to the file where downloaded data should be written. Defaults to $TOGGL_DATA or stdout." ,
96102 )
97103 time_download .add_argument (
98104 "--client" ,
0 commit comments