obsidian-export icon indicating copy to clipboard operation
obsidian-export copied to clipboard

obsidian-export_Windows-x64_64.exe: missing required free argument

Open pope opened this issue 3 years ago • 3 comments

I get this error when I use v22.1.0 of the windows binary.

Usage:

C:\Users\pope\Downloads\obsidian-export_Windows-x64_64.exe 'C:\Users\pope\Code\Fighting Games\' C:\Users\pope\Code\out

I can run the program with the help flags and that does work.

PS C:\Users\pope\Downloads\obsidian-export_Windows-x64_64.exe --help
Usage: C:\Users\pope\Downloads\obsidian-export_Windows-x64_64.exe [OPTIONS]

Positional arguments:
  source                     Read notes from this source
  destination                Write notes to this destination

Optional arguments:
  -h, --help                 Display program help
  -v, --version              Display version information
  --start-at START-AT        Only export notes under this sub-path
  --frontmatter FRONTMATTER-STRATEGY
                             Frontmatter strategy (one of: always, never, auto) (default: auto)
  --ignore-file IGNORE-FILE  Read ignore patterns from files with this name (default: .export-ignore)
  --hidden                   Export hidden files (default: false)
  --no-git                   Disable git integration (default: false)
  --no-recursive-embeds      Don't process embeds recursively (default: false)
  --hard-linebreaks          Convert soft line breaks to hard line breaks. This mimics Obsidian's 'Strict line breaks' setting (default: false)

pope avatar Jan 23 '22 17:01 pope

I have the same issue, and I am pretty sure it's because of the spaces in the path. Obsidian-export handles it fine on my Mac, but not in Windows.

Looking for solution. Using the grave accent ` as an escape character in front of each space does not seem to work as intended.

benbohmer avatar May 13 '22 09:05 benbohmer

I got it working by executing obsidian-export in the parent dir of where my .md files are, and having a target path with NO spaces in it. But that's no way to live...

benbohmer avatar May 13 '22 09:05 benbohmer

Same issue on Windows 11 ! I confirm spaces in the path are the problem.

mxrch avatar Nov 17 '22 19:11 mxrch