-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nethsm: Read host from NETHSM_HOST if not set
This patch changes all nethsm commands to read the host from the NETHSM_HOST environment variable if it is not set on the command line. This has two benefits: It makes it easier to run multiple commands for the same host. And it fixes the problem that the required --host option on the nethsm command group would make it impossible to run --help for a subcommand without setting --host. Example output if neither is set: $ nitropy nethsm lock Command line tool to interact with Nitrokey devices 0.7.3 Critical error: Missing NetHSM host: set the --host option or the NETHSM_HOST environment variable
- Loading branch information
1 parent
1397cd4
commit 22acf35
Showing
1 changed file
with
19 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters