commit d94abe531961da354ee713d7708d29771aa0d5db
parent 807bc0b03d29cc25cdd0aa8a8f477a9fe77a9dbc
Author: Hugo Soucy <hugo@soucy.cc>
Date: Wed, 3 Feb 2021 09:28:58 -0500
Remove duplicata in the argparse declarations
Diffstat:
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/satelito/init.lua b/satelito/init.lua
@@ -32,17 +32,15 @@ local parser = argparse()
local init
local args
-parser:option('-f --file', 'Input a markdown filepath.'):args(1)
-parser:flag('-p --pipeline', 'Input one or more markdown files through the pipeline.')
-parser:flag('-e --export', 'Export the outputed HTML in the `paths.public_html` folder.')
---parser:flag('-s --site', 'Explicitly process the content in site mode instead of the default page mode.')
-
parser:mutex(
- parser:option('-f --file'),
- parser:flag('-p --pipeline')
+ parser:option('-f --file', 'Input a markdown filepath.'),
+ parser:flag('-p --pipeline', 'Input one or more markdown files through the pipeline.')
+ --parser:flag('-s --site', 'Explicitly process the content in site mode instead of the default page mode.')
)
+parser:flag('-e --export', 'Export the outputed HTML in the *paths.public_html* folder.')
+
+init = parser:command('init', 'Init the sample website in your $HOME folder.')
-init = parser:command('init', 'Init the sample website in your $HOME.')
args = parser:parse()
if args['init'] then