threagile icon indicating copy to clipboard operation
threagile copied to clipboard

change single dash long arguments to double dash long arguments

Open CMon opened this issue 10 months ago • 3 comments

with threagile version > 0.9.0, a single dash for long arguments do not work anymore

CMon avatar Apr 15 '24 15:04 CMon

Could you please add more details on exact example when it's not working for you?

Also @joreiche may share more details on using confi file instead of arguments in command line - that's not documented but may improve a usability of the tool

ezavgorodniy avatar Apr 15 '24 21:04 ezavgorodniy

sure:

$ docker run --rm -it -v "$(pwd)":/work threagile create-example-model -output /work 
unknown shorthand flag: 'o' in -output

and if i use the double dash:

$ docker run --rm -it -v "$(pwd)":/work threagile create-example-model --output /work

it works even if I also get the help printed as well, same for the -model and --model:

$ docker run --rm -it -v "$(pwd)":/work threagile analyze --output /work -model /work/threagile-example-model.yaml
unknown shorthand flag: 'm' in -model

and with double dash:

$ docker run --rm -it -v "$(pwd)":/work threagile analyze --output /work --model /work/threagile-example-model.yaml
failed to read and analyze model: unable to check risk tracking: Risk tracking references unknown risk (risk id not found) - you might want to use the option -ignore-orphaned-risk-tracking: unencrypted-asset@*

even if the example is not working anymore at least it started with the parsing

CMon avatar Apr 16 '24 07:04 CMon

@ezavgorodniy is there anything else you need as information?

CMon avatar Apr 29 '24 14:04 CMon

Conflicts are resolved manually and changes are in master

ezavgorodniy avatar Jun 10 '24 16:06 ezavgorodniy