File tree 2 files changed +20
-2
lines changed
2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,12 @@ Options:
49
49
Disable automatic inclusion of the standard library
50
50
--exec
51
51
Exit after loading the files or running the given file(s)/entry on the command line
52
+ -q, --qsharp-json <QSHARP_JSON>
53
+ Path to a Q# manifest for a project
54
+ -f, --features <FEATURES>
55
+ Language features to compile with
56
+ --debug
57
+ Compile the given files and interactive snippets in debug mode
52
58
-h, --help
53
59
Print help
54
60
-V, --version
Original file line number Diff line number Diff line change @@ -52,6 +52,10 @@ struct Cli {
52
52
/// Language features to compile with
53
53
#[ arg( short, long) ]
54
54
features : Vec < String > ,
55
+
56
+ /// Compile the given files and interactive snippets in debug mode.
57
+ #[ arg( long) ]
58
+ debug : bool ,
55
59
}
56
60
57
61
struct TerminalReceiver ;
@@ -102,7 +106,11 @@ fn main() -> miette::Result<ExitCode> {
102
106
}
103
107
}
104
108
if cli. exec {
105
- let mut interpreter = match Interpreter :: new (
109
+ let mut interpreter = match ( if cli. debug {
110
+ Interpreter :: new_with_debug
111
+ } else {
112
+ Interpreter :: new
113
+ } ) (
106
114
!cli. nostdlib ,
107
115
SourceMap :: new ( sources, cli. entry . map ( std:: convert:: Into :: into) ) ,
108
116
PackageType :: Exe ,
@@ -122,7 +130,11 @@ fn main() -> miette::Result<ExitCode> {
122
130
) ) ;
123
131
}
124
132
125
- let mut interpreter = match Interpreter :: new (
133
+ let mut interpreter = match ( if cli. debug {
134
+ Interpreter :: new_with_debug
135
+ } else {
136
+ Interpreter :: new
137
+ } ) (
126
138
!cli. nostdlib ,
127
139
SourceMap :: new ( sources, None ) ,
128
140
PackageType :: Lib ,
You can’t perform that action at this time.
0 commit comments