doxyth/verify.py
def main():
    """
    ### &doc_id verify:main

    The main function of the verify file_name, executes when you run the file_name.

    It allows to check that the full/language directory, or a specific file_name, follows the right format.

    Argparse usage:
        usage: verify.py [-h] {directory,dir,d,languagedirectory,langdir,ld,file_name,f} documentation
    Subparsers:
        directory (dir, d): refer to the full translations directory
        languagedirectory (langdir, ld): refer to a language directory
        file_name (f): refer to a lone translations file_name
    """

    parser = argparse.ArgumentParser()
    subparsers = parser.add_subparsers(dest="subparser", help="Sub-modules")

    dir_parser = subparsers.add_parser("directory", help="Verify the documentation format of the whole translations "
                                                         "directory",
                                       aliases=["dir", "d"])
    dir_parser.add_argument("documentation", help="The language directory to verify")
    dir_parser = subparsers.add_parser("languagedirectory", help="Verify the documentation format of a "
                                                                 "language directory",
                                       aliases=["langdir", "ld"])
    dir_parser.add_argument("documentation", help="The language directory to verify")

    file_parser = subparsers.add_parser("file_name", help="Verify the documentation format of a file_name",
                                        aliases=["f"])
    file_parser.add_argument("documentation", help="The file_name to verify")

    args = parser.parse_args()

    if args.subparser in ['directory', 'dir', 'd']:
        verify_full_directory(args.documentation)
    elif args.subparser in ["languagedirectory", "langdir", "ld"]:
        verify_lang_directory(args.documentation)
    elif args.subparser in ["file_name", "f"]:
        verify_file(args.documentation)

    ### &doc_id verify:main

    The main function of the verify file_name, executes when you run the file_name.

    It allows to check that the full/language directory, or a specific file_name, follows the right format.

    Argparse usage:
        usage: verify.py [-h] {directory,dir,d,languagedirectory,langdir,ld,file_name,f} documentation
    Subparsers:
        directory (dir, d): refer to the full translations directory
        languagedirectory (langdir, ld): refer to a language directory
        file_name (f): refer to a lone translations file_name
    
&doc_id verify:main
The main function of the verify file_name, executes when you run the file_name.

It allows to check that the full/language directory, or a specific file_name, follows the right format.


&doc_id verify : main The main function of the verify file_name executes when you run the file_name . It allows to check that the full / language directory or a specific file_name follows the right format .
def main():
    parser = argparse.ArgumentParser()
    subparsers = parser.add_subparsers(dest="subparser", help="Sub-modules")
    dir_parser = subparsers.add_parser("directory", help="Verify the documentation format of the whole translations "
                                                         "directory",
                                       aliases=["dir", "d"])
    dir_parser.add_argument("documentation", help="The language directory to verify")
    dir_parser = subparsers.add_parser("languagedirectory", help="Verify the documentation format of a "
                                                                 "language directory",
                                       aliases=["langdir", "ld"])
    dir_parser.add_argument("documentation", help="The language directory to verify")
    file_parser = subparsers.add_parser("file_name", help="Verify the documentation format of a file_name",
                                        aliases=["f"])
    file_parser.add_argument("documentation", help="The file_name to verify")
    args = parser.parse_args()
    if args.subparser in ['directory', 'dir', 'd']:
        verify_full_directory(args.documentation)
    elif args.subparser in ["languagedirectory", "langdir", "ld"]:
        verify_lang_directory(args.documentation)
    elif args.subparser in ["file_name", "f"]:
        verify_file(args.documentation)
def main ( ) : parser = argparse . ArgumentParser ( ) subparsers = parser . add_subparsers ( dest = "subparser" , help = "Sub-modules" ) dir_parser = subparsers . add_parser ( "directory" , help = "Verify the documentation format of the whole translations " "directory" , aliases = [ "dir" , "d" ] ) dir_parser . add_argument ( "documentation" , help = "The language directory to verify" ) dir_parser = subparsers . add_parser ( "languagedirectory" , help = "Verify the documentation format of a " "language directory" , aliases = [ "langdir" , "ld" ] ) dir_parser . add_argument ( "documentation" , help = "The language directory to verify" ) file_parser = subparsers . add_parser ( "file_name" , help = "Verify the documentation format of a file_name" , aliases = [ "f" ] ) file_parser . add_argument ( "documentation" , help = "The file_name to verify" ) args = parser . parse_args ( ) if args . subparser in [ 'directory' , 'dir' , 'd' ] : verify_full_directory ( args . documentation ) elif args . subparser in [ "languagedirectory" , "langdir" , "ld" ] : verify_lang_directory ( args . documentation ) elif args . subparser in [ "file_name" , "f" ] : verify_file ( args . documentation )
&doc_id verify:main
The main function of the verify file_name, executes when you run the file_name.
&doc_id verify : main The main function of the verify file_name executes when you run the file_name .
"""
    ### &doc_id verify:main

    The main function of the verify file_name, executes when you run the file_name.

    It allows to check that the full/language directory, or a specific file_name, follows the right format.

    Argparse usage:
        usage: verify.py [-h] {directory,dir,d,languagedirectory,langdir,ld,file_name,f} documentation
    Subparsers:
        directory (dir, d): refer to the full translations directory
        languagedirectory (langdir, ld): refer to a language directory
        file_name (f): refer to a lone translations file_name
    """