You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""In the case where we pass something along the command line, the tool looks for source files in the argument if it is a directory or tries to interpret the argument as source of it is a file"""
The text was updated successfully, but these errors were encountered:
From #18 (--output-path, --make-dir, --quiet, --verbose:
Added two command-line (and metadata fields) to allow control over output location. Command-line arguments are used in the case where both are given
--output-path allows a parent path for generated questions to go (alias -o)
default: next to the source file
metadata respective field: "output-path" : str
an empty value for this field uses the default value
e.g. course/question_src_files/ $ generate_fpp.py --output-path ../questions/ ./my_fpp_question.fpp produces course/questions/my_fpp_question/ and puts question files inside of that directory
--make-dir is a flag whose presence says to explicitly create a directory with the question name (name of the source file) in the output path
default: true
metadata respective field: "make-dir" : bool
cli flags for negation: --no-make-dir, --no-duplicate-directories
e.g. questions/fpp_question/ $ generate_fpp.py --no-make-dir source_file.fpp produces a question inside of questions/fpp_question/ and NOT inside of questions/fpp_question/source_file/
Default behavior (create directory next to source path with source file name and write inside of it) is maintained.
"""In the case where we pass something along the command line, the tool looks for source files in the argument if it is a directory or tries to interpret the argument as source of it is a file"""
The text was updated successfully, but these errors were encountered: