fix version parsing and attempt to npm install during pip post_install

This commit is contained in:
Nick Sweeting 2020-08-18 15:58:05 -04:00
parent 9d7541ba47
commit 73408fb035
4 changed files with 50 additions and 9 deletions

View file

@ -104,11 +104,11 @@ def main(args: Optional[List[str]]=NotProvided, stdin: Optional[IO]=NotProvided,
)
command = parser.parse_args(args or ())
if command.help or command.subcommand is None:
command.subcommand = 'help'
elif command.version:
if command.version:
command.subcommand = 'version'
elif command.help or command.subcommand is None:
command.subcommand = 'help'
if command.subcommand not in ('help', 'version', 'status'):
from ..logging_util import log_cli_command