mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-28 06:23:08 -08:00
feat: fix issue with empty extra_args
This commit is contained in:
@@ -18,9 +18,14 @@ def exc(argv, **kwargs):
|
||||
@click.command()
|
||||
@click.argument("file")
|
||||
@click.argument("log")
|
||||
@click.argument("extra_args")
|
||||
def run_proverif(file, log, extra_args):
|
||||
return exc(["proverif", "-test", *extra_args, file], stderr=pkgs.sys.stderr)
|
||||
@click.argument("extra_args", required=False)
|
||||
def run_proverif(file, log, extra_args=[]):
|
||||
if extra_args is None:
|
||||
extra_args = []
|
||||
params = ["proverif", "-test", *extra_args, file]
|
||||
print(params)
|
||||
eprint(params)
|
||||
return exc(params, stderr=pkgs.sys.stderr)
|
||||
|
||||
|
||||
def clean_warnings():
|
||||
|
||||
@@ -10,7 +10,7 @@ run_proverif() {
|
||||
#local log; log="$1"; shift
|
||||
#exc proverif -test "${@}" "${file}" 2>&1
|
||||
|
||||
exc rosenpass-marzipan run_proverif "${file}" "${@}"
|
||||
exc rosenpass-marzipan run-proverif "${file}" "${@}"
|
||||
}
|
||||
|
||||
clean_warnings() {
|
||||
@@ -145,6 +145,7 @@ analyze() {
|
||||
|
||||
err_usage() {
|
||||
echo >&1 "USAGE: ${0} analyze PATH"
|
||||
echo >&1 "The script will cd into PATH and continue there."
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user