diff options
Diffstat (limited to 'src/flags.rs')
-rw-r--r-- | src/flags.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/flags.rs b/src/flags.rs index 7a400319c..ecc60922e 100644 --- a/src/flags.rs +++ b/src/flags.rs @@ -29,6 +29,7 @@ pub struct DenoFlags { pub allow_run: bool, pub types: bool, pub prefetch: bool, + pub info: bool, } pub fn get_usage(opts: &Options) -> String { @@ -111,6 +112,9 @@ fn set_recognized_flags( if matches.opt_present("prefetch") { flags.prefetch = true; } + if matches.opt_present("info") { + flags.info = true; + } if !matches.free.is_empty() { rest.extend(matches.free); @@ -147,6 +151,7 @@ pub fn set_flags( opts.optflag("", "v8-options", "Print V8 command line options."); opts.optflag("", "types", "Print runtime TypeScript declarations."); opts.optflag("", "prefetch", "Prefetch the dependencies."); + opts.optflag("", "info", "Show source file related info"); let mut flags = DenoFlags::default(); |