anz-bank / sysl

Sysl (pronounced "sizzle") is a system specification language
https://sysl.io
Apache License 2.0
122 stars 42 forks source link

Sysl import doesn't use flag root if it is used #941

Open ericzhang6222 opened 4 years ago

ericzhang6222 commented 4 years ago

Please do not post any internal, closed source snippets on this public issue tracker!

Description

sysl import --input=simple-api.yaml --app-name=Simple --root=./demos --output=simple-api.sysl doesn't use flag root

This command sysl import uses flag input to specify Sysl module, and it is different from other commands like sysl export and sysl diagram etc. which specify Sysl module by argument <MODULE>. So sysl import doesn't use the command flag root as current code. The issue is when it types sysl help import, it display --root in optional flags too. It is easy to confuse user.

Your Environments

$ sysl info
Build:
  Version      : v0.136.0
  Git Commit   : 9d1dc564c36b273b09cbc68b7a1c4c1c42ea991e
  Date         : 2020-07-06T06:56:22Z
  Go Version   : go1.13.12 linux/amd64
  OS           : darwin/amd64
$ sysl env
SYSL_MODULES=""
SYSL_PLANTUML="http://localhost:8080"
...