Results of 1 - 10 of about 30 for OptionParser (0.012 sec.)
- optparse --- Parser for command line options — Python 3.14.8 ドキュメント 14069
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » optparse --- Parser for command line options テーマ 自動 ライト ダーク | optparse --- Pa
...the first using optparse , and the second using argparse : import optparse if __name__ == '__main__' : parser = optparse . OptionParser () parser . add_option ( '-o' , '--output' ) parser . add_option ( '-v' , dest = 'verbose' , action = 'store_true' ) opts...an the minimalist getopt module. optparse uses a more declarative style of command-line parsing: you create an instance of OptionParser , populate it with options, and parse the command line. optparse allows users to specify options in the conventional GNU/P...ly generates usage and help messages for you. Here's an example of using optparse in a simple script: from optparse import OptionParser ... parser = OptionParser () parser . add_option ( "-f" , "--file" , dest = "filename" , help = "write report to FILE" , m... - https://man.mtool.work/python/3.14/library/optparse.html
- optparse --- Parser for command line options — Python 3.14.8 ドキュメント 14069
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » optparse --- Parser for command line options テーマ 自動 ライト ダーク | optparse --- Pa
...the first using optparse , and the second using argparse : import optparse if __name__ == '__main__' : parser = optparse . OptionParser () parser . add_option ( '-o' , '--output' ) parser . add_option ( '-v' , dest = 'verbose' , action = 'store_true' ) opts...an the minimalist getopt module. optparse uses a more declarative style of command-line parsing: you create an instance of OptionParser , populate it with options, and parse the command line. optparse allows users to specify options in the conventional GNU/P...ly generates usage and help messages for you. Here's an example of using optparse in a simple script: from optparse import OptionParser ... parser = OptionParser () parser . add_option ( "-f" , "--file" , dest = "filename" , help = "write report to FILE" , m... - https://man.mtool.work/python/3.14/library/optparse.html
- Migrating optparse code to argparse — Python 3.14.8 ドキュメント 8870
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー » Migrating optp
...tions that do choose to migrate from optparse to argparse , the following suggestions should be helpful: すべての optparse.OptionParser.add_option() の呼び出しを、 ArgumentParser.add_argument() の呼び出しに置き換える。 (options, args) = parser.parse_args() を...び出しを追加する。これまで options と呼ばれていたものが、 argparse では args と呼ばれていることに留意してください。 optparse.OptionParser.disable_interspersed_args() を、 parse_args() ではなく parse_intermixed_args() で置き換える。 コールバック・アクションと c...暗黙の引数を含む文字列を、 %(default)s や %(prog)s などの、通常の Python で辞書を使う場合のフォーマット文字列に置き換える。 OptionParser のコンストラクターの version 引数を、 parser.add_argument('--version', action='version', version='<the version>') に置き換... - https://man.mtool.work/python/3.14/howto/argparse-optparse.html
- Migrating optparse code to argparse — Python 3.14.8 ドキュメント 8821
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー » Migrating optp
...tions that do choose to migrate from optparse to argparse , the following suggestions should be helpful: すべての optparse.OptionParser.add_option() の呼び出しを、 ArgumentParser.add_argument() の呼び出しに置き換える。 (options, args) = parser.parse_args() を...び出しを追加する。これまで options と呼ばれていたものが、 argparse では args と呼ばれていることに留意してください。 optparse.OptionParser.disable_interspersed_args() を、 parse_args() ではなく parse_intermixed_args() で置き換える。 コールバック・アクションと c...暗黙の引数を含む文字列を、 %(default)s や %(prog)s などの、通常の Python で辞書を使う場合のフォーマット文字列に置き換える。 OptionParser のコンストラクターの version 引数を、 parser.add_argument('--version', action='version', version='<the version>') に置き換... - https://man.mtool.work/python/3.14/howto/argparse-optparse.html
- 索引 — Python 3.14.8 ドキュメント 7911
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – G gaierror gamma() (math モジュール) gammavariate() (random モジュール) garbage (gc モジュール) garbage collection , [1] gather() (asy
...malloc モジュール) get_objects() (gc モジュール) get_opcodes() (difflib.SequenceMatcher のメソッド) get_option() (optparse.OptionParser のメソッド) get_option_group() (optparse.OptionParser のメソッド) get_origin() (typing モジュール) get_original_bases() (t...のメソッド) get_unpack_formats() (shutil モジュール) get_unverified_chain() (ssl.SSLSocket のメソッド) get_usage() (optparse.OptionParser のメソッド) get_value() (multiprocessing.Semaphore のメソッド) (string.Formatter のメソッド) get_verified_chain() (ssl.SSL...Socket のメソッド) get_version() (optparse.OptionParser のメソッド) get_visible() (mailbox.BabylMessage のメソッド) get_wch() (curses.window のメソッド) get_write_buffer_limits()... - https://man.mtool.work/python/3.14/genindex-G.html
- 索引 — Python 3.14.8 ドキュメント 7911
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – G gaierror gamma() (math モジュール) gammavariate() (random モジュール) garbage (gc モジュール) garbage collection , [1] gather() (asy
...malloc モジュール) get_objects() (gc モジュール) get_opcodes() (difflib.SequenceMatcher のメソッド) get_option() (optparse.OptionParser のメソッド) get_option_group() (optparse.OptionParser のメソッド) get_origin() (typing モジュール) get_original_bases() (t...のメソッド) get_unpack_formats() (shutil モジュール) get_unverified_chain() (ssl.SSLSocket のメソッド) get_usage() (optparse.OptionParser のメソッド) get_value() (multiprocessing.Semaphore のメソッド) (string.Formatter のメソッド) get_verified_chain() (ssl.SSL...Socket のメソッド) get_version() (optparse.OptionParser のメソッド) get_visible() (mailbox.BabylMessage のメソッド) get_wch() (curses.window のメソッド) get_write_buffer_limits()... - https://man.mtool.work/python/3.14/genindex-G.html
- 索引 — Python 3.14.8 ドキュメント 7863
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | 索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | イ | エ | オ | カ | キ
...tually_exclusive_group() (argparse.ArgumentParser のメソッド) add_note() (BaseException のメソッド) add_option() (optparse.OptionParser のメソッド) add_parent() (urllib.request.BaseHandler のメソッド) add_password() (urllib.request.HTTPPasswordMgr のメソッド...able_faulthandler() (test.support モジュール) disable_gc() (test.support モジュール) disable_interspersed_args() (optparse.OptionParser のメソッド) disabled (logging.Logger の属性) DISABLED (tkinter モジュール) DisableReflectionKey() (winreg モジュール) disa...ソッド) (profile.Profile のメソッド) enable_callback_tracebacks() (sqlite3 モジュール) enable_interspersed_args() (optparse.OptionParser のメソッド) enable_load_extension() (sqlite3.Connection のメソッド) enable_long_distance_matching (compression.zstd.Compre... - https://man.mtool.work/python/3.14/genindex-all.html
- getopt --- C-style parser for command line options — Python 3.14.8 ドキュメント 7651
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Superseded Modules » getopt --- C-style parser for command line options テーマ 自動 ライト ダーク | getopt --- C-style parser for c
...tive help and error messages by using the optparse module: import optparse if __name__ == '__main__' : parser = optparse . OptionParser () parser . add_option ( '-o' , '--output' ) parser . add_option ( '-v' , dest = 'verbose' , action = 'store_true' ) opts... - https://man.mtool.work/python/3.14/library/getopt.html
- 索引 — Python 3.14.8 ドキュメント 7603
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – H halfdelay() (curses モジュール) Handle (asyncio のクラス) handle() (http.server.BaseHTTPRequestHandler のメソッド) (logging.Handler
...(http.cookiejar.Cookie のメソッド) HAS_NPN (ssl モジュール) has_option() (configparser.ConfigParser のメソッド) (optparse.OptionParser のメソッド) HAS_PHA (ssl モジュール) HAS_PSK (ssl モジュール) has_section() (configparser.ConfigParser のメソッド) HAS_SNI... - https://man.mtool.work/python/3.14/genindex-H.html
- 索引 — Python 3.14.8 ドキュメント 7603
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – O O_APPEND (os モジュール) O_ASYNC (os モジュール) O_BINARY (os モジュール) O_CLOEXEC (os モジュール) O_CREAT (os モジュール) O_DIRECT
...odule OptionConflictError OptionError OptionGroup (optparse のクラス) OptionMenu (tkinter のクラス) (tkinter.ttk のクラス) OptionParser (optparse のクラス) options (doctest.Example の属性) Options (ssl のクラス) options (ssl.SSLContext の属性) options() (con... - https://man.mtool.work/python/3.14/genindex-O.html