Skip to content

Commit 8a405c9

Browse files
committed
add comment
1 parent da9d8a2 commit 8a405c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dsc/src/subcommand.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ pub fn config_export(configurator: &mut Configurator, format: &Option<OutputForm
220220
}
221221

222222
fn initialize_config_root(path: &Option<String>) -> Option<String> {
223+
// code that calls this pass in either None, Some("-"), or Some(path)
224+
// in the case of `-` we treat it as None, but need to pass it back as subsequent processing needs to handle it
223225
let use_stdin = if let Some(specified_path) = path {
224226
if specified_path != "-" {
225227
return Some(set_dscconfigroot(specified_path));

0 commit comments

Comments
 (0)