microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
compiler/qsc/README.md
62lines · modecode
| 1 | # qsc - Q# command-line compiler |
| 2 | |
| 3 | ```console |
| 4 | Usage: qsc [OPTIONS] [INPUT]... |
| 5 | |
| 6 | Arguments: |
| 7 | [INPUT]... |
| 8 | Q# source files to compile, or `-` to read from stdin |
| 9 | |
| 10 | Options: |
| 11 | --nostdlib |
| 12 | Disable automatic inclusion of the standard library |
| 13 | |
| 14 | --emit <EMIT> |
| 15 | Emit the compilation unit in the specified format |
| 16 | |
| 17 | Possible values: |
| 18 | - ast: Abstract syntax tree |
| 19 | |
| 20 | --outdir <DIR> |
| 21 | Write output to compiler-chosen filename in <dir> |
| 22 | |
| 23 | -v, --verbose |
| 24 | Enable verbose output |
| 25 | |
| 26 | -e, --entry <ENTRY> |
| 27 | Entry expression to execute as the main operation |
| 28 | |
| 29 | -h, --help |
| 30 | Print help (see a summary with '-h') |
| 31 | |
| 32 | -V, --version |
| 33 | Print version |
| 34 | ``` |
| 35 | |
| 36 | # qsi - Q# interactive command-line |
| 37 | |
| 38 | ```console |
| 39 | Q# Interactive |
| 40 | |
| 41 | Usage: qsi [OPTIONS] |
| 42 | |
| 43 | Options: |
| 44 | --use <SOURCES> |
| 45 | Use the given file on startup as initial session input |
| 46 | --entry <ENTRY> |
| 47 | Execute the given Q# expression on startup |
| 48 | --nostdlib |
| 49 | Disable automatic inclusion of the standard library |
| 50 | --exec |
| 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 |
| 58 | -h, --help |
| 59 | Print help |
| 60 | -V, --version |
| 61 | Print version |
| 62 | ``` |
| 63 | |