Skip to content

Commit

Permalink
Use CLI.get_full_name()
Browse files Browse the repository at this point in the history
The CLI.create_parser() has been modified to create the
ArgumentParser with the module's full name.
  • Loading branch information
edewata committed Jan 18, 2025
1 parent 424fb54 commit b4f4868
Show file tree
Hide file tree
Showing 32 changed files with 169 additions and 169 deletions.
2 changes: 1 addition & 1 deletion base/common/python/pki/cli/password.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-v',
Expand Down
2 changes: 1 addition & 1 deletion base/common/python/pki/cli/pkcs12.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument('--pkcs12')
self.parser.add_argument('--pkcs12-file')
Expand Down
14 changes: 7 additions & 7 deletions base/server/python/pki/server/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument('--user')
self.parser.add_argument('--group')
Expand Down Expand Up @@ -394,7 +394,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'--remove-conf',
Expand Down Expand Up @@ -473,7 +473,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-v',
Expand Down Expand Up @@ -534,7 +534,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'--wait',
Expand Down Expand Up @@ -613,7 +613,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'--wait',
Expand Down Expand Up @@ -692,7 +692,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'--wait',
Expand Down Expand Up @@ -767,7 +767,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'--as-current-user',
Expand Down
24 changes: 12 additions & 12 deletions base/server/python/pki/server/cli/acme.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -112,7 +112,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -196,7 +196,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -288,7 +288,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -382,7 +382,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -469,7 +469,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -581,7 +581,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -701,7 +701,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -919,7 +919,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -1034,7 +1034,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -1247,7 +1247,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -1377,7 +1377,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down
18 changes: 9 additions & 9 deletions base/server/python/pki/server/cli/audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __init__(self, parent):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -166,7 +166,7 @@ def __init__(self, parent):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -324,7 +324,7 @@ def __init__(self, parent):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -427,7 +427,7 @@ def __init__(self, parent):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -502,7 +502,7 @@ def __init__(self, parent):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -590,7 +590,7 @@ def __init__(self, parent):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -672,7 +672,7 @@ def __init__(self, parent):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -760,7 +760,7 @@ def __init__(self, parent):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -841,7 +841,7 @@ def __init__(self, parent):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down
4 changes: 2 additions & 2 deletions base/server/python/pki/server/cli/banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down Expand Up @@ -111,7 +111,7 @@ def __init__(self):
def create_parser(self):

self.parser = argparse.ArgumentParser(
prog=self.name,
self.get_full_name(),
add_help=False)
self.parser.add_argument(
'-i',
Expand Down
Loading

0 comments on commit b4f4868

Please sign in to comment.