Skip to content

Commit f6862e8

Browse files
committed
markdown: use -n for consistency
1 parent d365d56 commit f6862e8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

markdown.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ document containing the text from multiple screens (eg: text screens
1919
from several dwarves, or text screens from multiple artifacts/items,
2020
or some combination).
2121
22-
Usage: ``markdown [/n] [filename]``
22+
Usage: ``markdown [-n] [filename]``
2323
24-
:/n: overwrites contents of output file
24+
:-n: overwrites contents of output file
2525
:filename:
2626
if provided, save to :file:`md_{filename}.md` instead
2727
of the default :file:`md_export.md`
@@ -54,7 +54,7 @@ end
5454
local writemode = 'a'
5555

5656
-- check if we want to append to an existing file (default) or overwrite previous contents
57-
if args[1] == '/n' then
57+
if args[1] == '-n' or args[1] == '/n' then
5858
writemode = 'w'
5959
table.remove(args, 1)
6060
end

0 commit comments

Comments
 (0)