mirror of
https://github.com/gaschz/qubes-pass.git
synced 2025-06-07 01:38:31 +02:00
Some reformatting of code.
This commit is contained in:
parent
2e179e5737
commit
a6e5e1450b
10
bin/qvm-pass
10
bin/qvm-pass
@ -17,7 +17,8 @@ except ImportError:
|
|||||||
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
||||||
|
|
||||||
|
|
||||||
usage = "\n".join(
|
usage_string = (
|
||||||
|
"\n".join(
|
||||||
[
|
[
|
||||||
"qvm-pass usage:",
|
"qvm-pass usage:",
|
||||||
"",
|
"",
|
||||||
@ -55,6 +56,8 @@ usage = "\n".join(
|
|||||||
" Initializes the pass store.",
|
" Initializes the pass store.",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
+ "\n"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
# The following code was lifted from the pass program to support
|
# The following code was lifted from the pass program to support
|
||||||
@ -153,7 +156,7 @@ parser_for_discrimination.add_argument(
|
|||||||
|
|
||||||
parser_for_subcommands = argparse.ArgumentParser(
|
parser_for_subcommands = argparse.ArgumentParser(
|
||||||
description="A Qubes-RPC inter-vm client for the pass password manager.",
|
description="A Qubes-RPC inter-vm client for the pass password manager.",
|
||||||
usage=usage,
|
usage=usage_string,
|
||||||
)
|
)
|
||||||
parser_for_subcommands.add_argument(
|
parser_for_subcommands.add_argument(
|
||||||
"-d",
|
"-d",
|
||||||
@ -327,6 +330,9 @@ def pass_manage(*args, **kwargs):
|
|||||||
return send_args(PASS_MANAGE, *args, **kwargs)
|
return send_args(PASS_MANAGE, *args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
# -------------------- Begin ----------------------
|
||||||
|
|
||||||
|
|
||||||
arguments = sys.argv[1:]
|
arguments = sys.argv[1:]
|
||||||
if "--help" in arguments or "-h" in arguments or "-?" in arguments:
|
if "--help" in arguments or "-h" in arguments or "-?" in arguments:
|
||||||
parser_for_subcommands.parse_known_args(arguments)
|
parser_for_subcommands.parse_known_args(arguments)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user