Skip to content

Commit

Permalink
NO_WRITE_FILE to NO_RENDER
Browse files Browse the repository at this point in the history
Signed-off-by: qubitrenagade <qubitrenegade@gmail.com>
  • Loading branch information
qubitrenegade committed Mar 9, 2019
1 parent 0f3c654 commit e3e7666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/hab/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ pub fn get() -> App<'static, 'static> {
(@arg MOCK_DATA: -m --("mock-data") +takes_value "Path to json file with mock data for template, defaults to none")
(@arg PRINT: -p --("print") "Prints config to STDOUT")
(@arg RENDER_DIR: -r --("render-dir") +takes_value default_value("./results") "Path to render templates")
(@arg NO_WRITE_FILE: -n --("no-render") "Don't write anything to disk, ignores --render-dir")
(@arg NO_RENDER: -n --("no-render") "Don't write anything to disk, ignores --render-dir")
(@arg QUIET: -q --("no-verbose") --quiet
"Don't print any helper messages. When used with `--print` will only print config file")
)
Expand Down
2 changes: 1 addition & 1 deletion components/hab/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ fn sub_plan_render(ui: &mut UI, m: &ArgMatches<'_>) -> Result<()> {
let mock_data_path = m.value_of("MOCK_DATA").map(Path::new);

let print = m.is_present("PRINT");
let render = !m.is_present("NO_WRITE_FILE");
let render = !m.is_present("NO_RENDER");
let quiet = m.is_present("QUIET");

let render_dir = Path::new(m.value_of("RENDER_DIR").unwrap());
Expand Down

0 comments on commit e3e7666

Please sign in to comment.