File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ struct Args {
8181
8282 /// specify file path to process STDIN as
8383 #[ argh( option) ]
84- stdin_file_path : Option < String > ,
84+ stdin : Option < String > ,
8585
8686 /// generate debug symbols, only works for spv-out for now
8787 #[ argh( switch, short = 'g' ) ]
@@ -116,8 +116,8 @@ struct Args {
116116 /// the input and output files.
117117 ///
118118 /// First positional argument is the input file. If not specified, the
119- /// input will be read from stdin. In the case, --stdin-file-path must also
120- /// be specified.
119+ /// input will be read from stdin. In the case, --stdin must also be
120+ /// specified.
121121 ///
122122 /// The rest arguments are the output files. If not specified, only
123123 /// validation will be performed.
@@ -457,7 +457,7 @@ fn run() -> anyhow::Result<()> {
457457
458458 let mut files = args. files . iter ( ) ;
459459
460- let ( input_path, input) = if let Some ( path) = args. stdin_file_path . as_ref ( ) {
460+ let ( input_path, input) = if let Some ( path) = args. stdin . as_ref ( ) {
461461 let mut input = vec ! [ ] ;
462462 std:: io:: stdin ( ) . lock ( ) . read_to_end ( & mut input) ?;
463463 ( Path :: new ( path) , input)
You can’t perform that action at this time.
0 commit comments