diff options
author | Griffin Smith <root@gws.fyi> | 2021-03-08T05·04-0500 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2021-03-08T05·04-0500 |
commit | 1ea2d8ba9fef3bee2c757d19d8b42e541e3fe390 (patch) | |
tree | 6999d66bb363fce16a078abfc913fa1610c1437c /src/commands | |
parent | 80f8ede0bbc9799d5199707e1e1ad8e80e4ca7ac (diff) |
Implement functions, both top-level and anonymous
Implement both top-level and anonymous functions, but not closures in either case.
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/compile.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commands/compile.rs b/src/commands/compile.rs index e16b8c87a659..be8767575ab5 100644 --- a/src/commands/compile.rs +++ b/src/commands/compile.rs @@ -5,10 +5,13 @@ use clap::Clap; use crate::common::Result; use crate::compiler::{self, CompilerOptions}; +/// Compile a source file #[derive(Clap)] pub struct Compile { + /// File to compile file: PathBuf, + /// Output file #[clap(short = 'o')] out_file: PathBuf, |