mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-07-31 03:43:05 -07:00
Cleanup
This commit is contained in:
@@ -75,8 +75,5 @@ def main():
|
|||||||
print("")
|
print("")
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
__example_rns_config__ = '''# This is an example Identity Resolver file.
|
|
||||||
'''
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|||||||
@@ -54,12 +54,13 @@ def main():
|
|||||||
parser.add_argument("--config", action="store", default=None, help="path to alternative Reticulum config directory", type=str)
|
parser.add_argument("--config", action="store", default=None, help="path to alternative Reticulum config directory", type=str)
|
||||||
parser.add_argument('-v', '--verbose', action='count', default=0)
|
parser.add_argument('-v', '--verbose', action='count', default=0)
|
||||||
parser.add_argument('-q', '--quiet', action='count', default=0)
|
parser.add_argument('-q', '--quiet', action='count', default=0)
|
||||||
|
parser.add_argument("--exampleconfig", action='store_true', default=False, help="print verbose configuration example to stdout and exit")
|
||||||
parser.add_argument("--version", action="version", version="rnpkg {version}".format(version=__version__))
|
parser.add_argument("--version", action="version", version="rnpkg {version}".format(version=__version__))
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if args.exampleconfig:
|
if args.exampleconfig:
|
||||||
print(__example_rns_config__)
|
print(__example_rnpkg_config__)
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
if args.config: configarg = args.config
|
if args.config: configarg = args.config
|
||||||
@@ -71,7 +72,7 @@ def main():
|
|||||||
print("")
|
print("")
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
__example_rns_config__ = '''# This is an example package manager configuration file.
|
__example_rnpkg_config__ = '''# This is an example package manager configuration file.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
if __name__ == "__main__": main()
|
if __name__ == "__main__": main()
|
||||||
|
|||||||
Reference in New Issue
Block a user