Skip to content

Commit

Permalink
Merge pull request #83 from zombocom/schneems/absolute-with-contents
Browse files Browse the repository at this point in the history
Expand `with_contents_dir` to absolute path
  • Loading branch information
schneems authored Nov 28, 2024
2 parents 5a0c1c6 + 6413296 commit e1eab47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## HEAD

- Fix: `rundoc <file> --with-contents <dir>` now expands the path passed in to the `--with-contents` so relative paths can safely be used (https://github.com/zombocom/rundoc/pull/83)

## 3.1.1

- Fix: Include all code sections in the event of a failure, not just the last one (https://github.com/zombocom/rundoc/pull/71)
Expand Down
2 changes: 1 addition & 1 deletion lib/rundoc/cli_argument_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def call
end

opts.on("--with-contents <dir>", "Copies contents of directory into the tmp working dir") do |v|
options[:with_contents_dir] = v
options[:with_contents_dir] = File.expand_path(v)
end

opts.on("--on-success-dir <dir>", "Success dir, relative to CWD. i.e. `<rundoc.md/dir>/#{CLI::DEFAULTS::ON_SUCCESS_DIR}/`.") do |v|
Expand Down

0 comments on commit e1eab47

Please sign in to comment.